using a c++ dll that returns a pointer

J

Jerome

Hello all,

I think I'm a bit lost in the managed/unmanaged world!
My problem is that I have a c++ dll for a program on a pda and I'd like to
use it in a program in .net and c#. I've almost understood how it works when
you wanna use a simple function, but I don't understand how to use it when
you have to use a personnal class (let's say CMyClass) as a parameter or
deal with a function that returns a pointer...
someone could give me some keys ?

thank you

Jérôme
 
V

Vadym Stetsyak

You can treat pointer as IntPtr .NET type.
Make google queries for P/Invoke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top