06-20-2007 12:13 PM
06-21-2007 04:38 AM
There are as many ways to do this as there are software engineers who volunteer a solution,
but as a quick check the try editing the header file as follows: (delete the bits in red, add the bits in green)
#ifndef C_source
#define DllImport __declspec( dllimport )
extern "C" DllImport int __stdcall JaiA50InitComm(int CommPort);
extern "C" DllImport int __stdcall JaiA50ExitComm(int CommPort);
extern "C" DllImport int __stdcall JaiA50SendCameraData(int CommPort, int cmd, int Data);
extern "C" DllImport int __stdcall JaiA50GetCameraData(int CommPort, int cmd, int* pData);
#endif
If this works you could consider a cleaner approach, but unless you can persuade the suppliers to alter their code I think you will always be left with editing the file one way or another.
JR
06-21-2007 10:29 AM