I have this in a .dll's header:
DLL int PluginOpenFile(const char* inFilename);
So I :
Dim FileName As CString = "B0032.sm" (this is copied inot the app main on a build script CopyFileStep)
soft Declare Function PluginOpenFile Lib "slvsPlugin.dll" (ByRef FileName As CString) As Integer
result = PluginOpenFile( FileName )
...but this hangs inside the .dll and I have to "EndTask". If I leave the ByRef out ogf the declare, it runs but returns an error (1)
I know I am bungling the ptr but how?