my dll is and needs to be x64. I have in the past passed reference strings to a dll x32 but when I try to do the same thing it doesn't work.
more explicitly my vb
Declare Sub stringbyref_ Lib "c:\davids\directory_all_dlls\hiprec1.dll" (s As String)
and my c++ dll function is:
void FAR PASCAL stringbyref_(LPSTR*p_s)
when the code is run p_s is a bad pointer!
I note that I can pass a string forward into the dll just fine. its the passback that is the problem.
if you can help I would appreciate it.