Hi!
Suddenly I am in the need of BlitzMax.. I have BM for a while now and for a project I need to call some DLL. The only examples I've got are these
Example in Delphi:
Function BerekenTotaalXML (InFile : Pointer; OutFile : Pointer): WordBool; Stdcall;
Example in VB:
Private Declare Function BerekenTotaalXML Lib "WUREKINT.DLL" (ByVal inFile As String, ByVal outFile As String) As WordBool
InFile = XML input
OutFile = XML output
I've been trying for 2 days now with some examples in the forum but I can't get anything out of this DLL...
Any ideas? My attempt so far...
Suddenly I am in the need of BlitzMax.. I have BM for a while now and for a project I need to call some DLL. The only examples I've got are these
Example in Delphi:
Function BerekenTotaalXML (InFile : Pointer; OutFile : Pointer): WordBool; Stdcall;
Example in VB:
Private Declare Function BerekenTotaalXML Lib "WUREKINT.DLL" (ByVal inFile As String, ByVal outFile As String) As WordBool
InFile = XML input
OutFile = XML output
I've been trying for 2 days now with some examples in the forum but I can't get anything out of this DLL...
Any ideas? My attempt so far...
Global infile:String = "infile.xml" Global outfile:String="outfile.xml" Const DllName:String = "WURekInt.dll" Local DllHandle = LoadLibraryA(DllName) If DLLhandle = 0 Then Notify "Unable to initialize the dll" End EndIf Global BerekenTotaalXML(infile:String, outfile:String) "win32" If DllHandle ' Assign DLL function "DoStuff" to "InitGame" function... BerekenTotaalXML= GetProcAddress (DllHandle, "BerekenTotaalXML") If BerekenTotaalXML= Null Then Notify "Doh!"; End ' More... EndIf Print BerekenTotaalXML(infile, outfile)