Trying to configure parameters with several data types and call a defined dll-function, I'm having problems with accessing this dll. The system crashes and debugging learns me, access violation had take place. The function I'm trying to assign has the following syntax:
BOOL OpenBoard4520 (LONG DeviceNumber, BOOL LoadDevice, LPSTR szBuf, BoardConfig boardconfig).
With parameters:
DeviceNumber: Device number to load,
LoadDevice: Load/not load the WinRT driver,
szBuf: message buffer to return error message,
boardconfig: Pointer to a BoardConfig structure to return configuration information about the board. Argument is used for display OS resources allocated to the board. I don't know either how to pass
NULL for this argument, since I do not need this information.
My question is: can someone provide me with a solution, or perhaps an example-program to call this defined dll Driver API Function properly, without a system crash?
Thanks for your help!