471,315 Members | 2,270 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

using a c++ dll that returns a pointer

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
Dec 8 '05 #1
1 1126
You can treat pointer as IntPtr .NET type.
Make google queries for P/Invoke

--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

"Jerome" <jl*******@wanadoo.fr> wrote in message
news:eu**************@TK2MSFTNGP14.phx.gbl...
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

Dec 8 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by VivekR | last post: by
11 posts views Thread by Aguilar, James | last post: by
2 posts views Thread by Tony Johansson | last post: by
7 posts views Thread by Mike D. | last post: by
7 posts views Thread by fakeprogress | last post: by
29 posts views Thread by shuisheng | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.