Question : C++ dll in VB

Hi,

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?

Thanks

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
http://support.microsoft.com/kb/106553

More:
Writing C DLLs for use with VB
http://sandsprite.com/CodeStuff/Writing_A_C_Dll_for_VB.html

                        
Random Solutions  
 
programming4us programming4us