Click here to Skip to main content
15,892,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to pass string in DLL? [edited] Pin
toxcct12-Apr-05 0:08
toxcct12-Apr-05 0:08 
GeneralRe: How to pass string in DLL? Pin
Cedric Moonen12-Apr-05 1:31
Cedric Moonen12-Apr-05 1:31 
GeneralRe: How to pass string in DLL? [edited] Pin
Cedric Moonen12-Apr-05 2:06
Cedric Moonen12-Apr-05 2:06 
AnswerRe: How to pass string in DLL? Pin
Francesco Aruta12-Apr-05 8:46
Francesco Aruta12-Apr-05 8:46 
GeneralRe: How to pass string in DLL? Pin
Rick York12-Apr-05 9:30
mveRick York12-Apr-05 9:30 
GeneralRe: How to pass string in DLL? Pin
Francesco Aruta12-Apr-05 9:53
Francesco Aruta12-Apr-05 9:53 
GeneralRe: How to pass string in DLL? Pin
Cedric Moonen12-Apr-05 20:55
Cedric Moonen12-Apr-05 20:55 
GeneralRe: How to pass string in DLL? Pin
Francesco Aruta13-Apr-05 0:19
Francesco Aruta13-Apr-05 0:19 
cedric moonen wrote:
But this will crash after when you try to read the string in VB.

Oh.. I missed that!
Well.. I'm not using visual basic but I wrote some dll used by
Delphi programs. We solved the same iusse using simple types like
arrays of int/char instead of complex types like BSTR or pascal's string.
I suppose that you can pass to dll_func a Byte array and then convert it to a string.
Something like:

Dim ByteArrayString(50) As Byte

Here you can find something about bytearray to string conversion in Visual Basic.
Hope this help.
Bye,
Francesco
GeneralForwardReferencing in VC++ 6.0 Pin
Ganesh_Srim11-Apr-05 23:35
Ganesh_Srim11-Apr-05 23:35 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
toxcct11-Apr-05 23:57
toxcct11-Apr-05 23:57 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Ganesh_Srim12-Apr-05 9:13
Ganesh_Srim12-Apr-05 9:13 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Joel Holdsworth12-Apr-05 0:18
Joel Holdsworth12-Apr-05 0:18 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
CP Visitor12-Apr-05 4:44
CP Visitor12-Apr-05 4:44 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Ganesh_Srim12-Apr-05 9:16
Ganesh_Srim12-Apr-05 9:16 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Bob Helter12-Apr-05 10:11
sussBob Helter12-Apr-05 10:11 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Ganesh_Srim12-Apr-05 23:12
Ganesh_Srim12-Apr-05 23:12 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Blake Miller12-Apr-05 7:31
Blake Miller12-Apr-05 7:31 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Ganesh_Srim12-Apr-05 9:10
Ganesh_Srim12-Apr-05 9:10 
GeneralRe: Tried All - NoLuck! Pin
Ganesh_Srim12-Apr-05 9:26
Ganesh_Srim12-Apr-05 9:26 
GeneralRe: Tried All - NoLuck! Pin
Rick York12-Apr-05 9:48
mveRick York12-Apr-05 9:48 
GeneralRe: Tried All - NoLuck! Pin
CP Visitor12-Apr-05 22:55
CP Visitor12-Apr-05 22:55 
GeneralRe: Tried All - NoLuck! Pin
Ganesh_Srim12-Apr-05 23:17
Ganesh_Srim12-Apr-05 23:17 
GeneralRe: Tried All - NoLuck! Pin
Ganesh_Srim12-Apr-05 23:12
Ganesh_Srim12-Apr-05 23:12 
GeneralRe: ForwardReferencing in VC++ 6.0: Resolved! Thanks All Pin
Ganesh_Srim12-Apr-05 23:21
Ganesh_Srim12-Apr-05 23:21 
GeneralNotify Change Pin
sunit511-Apr-05 23:25
sunit511-Apr-05 23:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.