BasicScience wrote:Almost there, happy to supply Johnnie Walker Black Edition when I can get it to work here.
Only if you make money in any kind with "my work for you" forget it if you used it only for hobby.
BasicScience wrote:Here's a link to AxHIDManager.dll. The company didn't provide the .h file :-(
I don't need the *.h file AxoclampDriver.dll depends on AxHIDManager.dll you can see it here:
I needed it only to test my hand created *.bi file may be you have to remove AxHIDManager.dll from fbAxoclampDriver folder.
BasicScience wrote:I'm still getting a problem with the functions preceded by "_"
Should be fixed download the zip file again.
The primary problem are they mixed __sdtcall exports with and without name decoration and exported the names for "C" compilers under Linux also.
Linux "C" add an underscore in front of imported names
can be to use the SDK on Windows and Linux with FreeBASIC
you have to add two section in the *.bi file one with name aliases and on section without !
Code: Select all
extern "Windows"
#ifdef __FB_WIN32__
declare function AXC_GetSerialNumber alias "_AXC_GetSerialNumber" (byval m_hAXC as HAXC, byval pszSerialNum as zstring ptr, byval uBufSize as UINT, byval pnError as long ptr) as BOOL
' ...
#else
declare function AXC_GetSerialNumber (byval m_hAXC as HAXC, byval pszSerialNum as zstring ptr, byval uBufSize as UINT, byval pnError as long ptr) as BOOL
'...
#endif
end extern
By the way you used AXC_GetSerialNumber() in a wrong manner look in file: "test.bas"
You used a NULL pointer for the nError argument and it crashed here !
It must be a "address" to a var to store the bool (long) like this @nError
Joshy