I was trying to build a C application using my Borland C++ compiler. Application compiles and links, but when I run the application I get the following error: Access violation at address 6D4E2152 in module ‘sa_api.dll’. Write of address of 00000064. This error occurs on the saOpenDeviceBySerialNumber() function call. Any idea of what the problem may be?
I have no experience using the Borland C++ compiler. I would guess that there is some conflict of calling convention or that there is some configuration issue. Googling something like “Calling Visual C++ DLL from Borland C++” brings up a number of results. I’m sure you could try some things mentioned in these results.