Home All Groups Group Topic Archive Search About

Pass a structure to a C++ dll

Author
6 Jul 2009 7:59 PM
roidy
Hi, Does anyone have a code example of how to pass a structure from VB to a
C++ dll, modify it and return it to VB. I`ve searched the internet for hours
and can find loads of info on passing variables but nothing on passing
structures.

Thanks
Rob

Author
6 Jul 2009 8:45 PM
Armin Zingler
roidy wrote:
> Hi, Does anyone have a code example of how to pass a structure from
> VB to a C++ dll, modify it and return it to VB. I`ve searched the
> internet for hours and can find loads of info on passing variables
> but nothing on passing structures.

F1?

http://msdn.microsoft.com/en-us/library/ms172270.aspx

In particular:
http://msdn.microsoft.com/en-us/library/eadtsekz.aspx


Armin
Are all your drivers up to date? click for free checkup

Author
6 Jul 2009 9:10 PM
roidy
Thanks Armin, I`ll have a good read of them and see if I can work it out.
Yes I spent hours searching the internet and not once did I think of
pressing F1 :)

Rob

Show quoteHide quote
"Armin Zingler" <az.nospam@freenet.de> wrote in message
news:efmF9qn$JHA.3432@TK2MSFTNGP02.phx.gbl...
> roidy wrote:
>> Hi, Does anyone have a code example of how to pass a structure from
>> VB to a C++ dll, modify it and return it to VB. I`ve searched the
>> internet for hours and can find loads of info on passing variables
>> but nothing on passing structures.
>
> F1?
>
> http://msdn.microsoft.com/en-us/library/ms172270.aspx
>
> In particular:
> http://msdn.microsoft.com/en-us/library/eadtsekz.aspx
>
>
> Armin

Bookmark and Share

Post Thread options