Managed C++ dll in C#: Can only reference parameterless constructors -


i'm trying import 3rd party dll linked managed c++ c# in vs2010. far understand should possible. dll loads fine through add reference, cannot access in namespace though content of entire dll visible in object browser

there exception, though: if make classes public in dll (i have source code), can access classes' parameterless constructors, that's it. i've tried sorts of solutions, including enclosing in extern "c++" doesn't bit of difference.

what doing wrong? note c++ project not have dllmain file.

the classes declared in c++ project:

#ifndef _point_h #define _point_h ***usings*** namespace ns {     public class __declspec(dllexport) point     {     private:         double* pstart_;         int n_;     public :         point()         : pstart_(0), n_(0)         {}          point(double x, double y)         : pstart_(new double[2]), n_(2)         {         pstart_[0] = x;         pstart_[1] = y;         }     methods etc...     } } 


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -