Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Passing structure from C++ to VB

75 views
Skip to first unread message

Michael Tissington

unread,
Jun 27, 2003, 5:35:13 PM6/27/03
to
Not sure where to ask this question ...

I have a structure in C++ that containes a number of strings (at the moment
they are CStrings but I can change this)

How do I make a call from VB to my DLL that gets back a pointer to the
structure and then I can reference the strings in VB (VB will use it as Read
Only)

Thanks

--
Michael Tissington
Oaklodge Technologies
http://www.oaklodge.com/technology

Ken Halter

unread,
Jun 27, 2003, 5:50:48 PM6/27/03
to
I gathered this list the other day for another poster... hopefully, there's something here
that'll help

HOWTO: Pass Array of UDTs with Variable Length Strings to C/C++
http://support.microsoft.com/default.aspx?scid=kb;en-us;194609

INFO: Visual Basic Requirements for Exported DLL Functions
http://support.microsoft.com/default.aspx?scid=kb;en-us;142840

How to Pass a String or String Arrays Between VB and a C DLL
http://support.microsoft.com/default.aspx?scid=kb;en-us;118643

HOWTO: Pass a String Between Visual Basic and Your C DLL
http://support.microsoft.com/default.aspx?scid=kb;en-us;187912

HOWTO: Write C DLLs and Call Them from Visual Basic
http://support.microsoft.com/default.aspx?scid=kb;en-us;106553

How to Pass Numeric Variables to a C DLL
http://support.microsoft.com/default.aspx?scid=kb;en-us;94960

How to Pass & Return Unsigned Integers to DLLs from VB
http://support.microsoft.com/default.aspx?scid=kb;en-us;112673


--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep it in the groups..


"Michael Tissington" <mic...@nospam.com> wrote in message
news:%23byV8QP...@tk2msftngp13.phx.gbl...

Michael Tissington

unread,
Jun 27, 2003, 7:14:29 PM6/27/03
to
Thanks!

--
Michael Tissington
Oaklodge Technologies
http://www.oaklodge.com/technology

"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:%23N45sYP...@TK2MSFTNGP11.phx.gbl...

0 new messages