Wrapping C++ dll

Hi there!

I'm very very new to C#, but I fell in love with it after the first minutes. My problem is, that I have to use some unmanaged c++ dlls. I couldn't find a good how-to about wrapping such dlls. I managed to wrap some classes by inspecting wrappers I found on the net. My problem is that I don't know how to handle something like this:

class fooA
{
...
};

class fooB
{
const fooA *m_a;
const char *m_name;
void *m_userData;

void setName(const char *name);
void setData(void *data);
...
...
};

I've collected most of the problems I had and assembled them in that example class. I hope that somebody can help me how to deal with such things or give me an advice about a good "tutorial" or paper.

Thanks in advance & best regards,

Marc Ueberall


Answer this question

Wrapping C++ dll