I need to convert this C declaration in a VB dll so that I can use it with PB. The declaration is:-
EXPORT_DLL_FUNCTION(void) GetErrorString(char *errorString, int error);
My translation is:-
DECLARE FUNCTION GetErrorString LIB "myvb.dll" ALIAS "GetErrorString" (ErrorString AS STRING, errorflag AS INTEGER) AS ????????
The problem is that the DLL does not return an exit value - it just fills ErrorString depending on the value of errorflag. I cannot recompile this DLL (though I have all the required code) so I do not know where to go from here (except here, of course). What can I use instead of the 'void' statement? Have I overlooked something simple?
Iain Johnstone
EXPORT_DLL_FUNCTION(void) GetErrorString(char *errorString, int error);
My translation is:-
DECLARE FUNCTION GetErrorString LIB "myvb.dll" ALIAS "GetErrorString" (ErrorString AS STRING, errorflag AS INTEGER) AS ????????
The problem is that the DLL does not return an exit value - it just fills ErrorString depending on the value of errorflag. I cannot recompile this DLL (though I have all the required code) so I do not know where to go from here (except here, of course). What can I use instead of the 'void' statement? Have I overlooked something simple?
Iain Johnstone
Comment