Question : C++ dll in VB


I am trying to use a dll that was made in C++ in VB

I am having a problem with a certain function

int _stdcall InitDebug(char* path)

when I call that function in VB... what do I do for char* path?  do I have to change the C++ dll to accept strings? or is there another way?


Answer : C++ dll in VB

It can be
Declare Sub InitDebug Lib "c:\my.dll"
(ByVal thePath As String)

Microsoft Support. How To Write C DLLs and Call Them from Visual Basic

Writing C DLLs for use with VB

Random Solutions  
programming4us programming4us