#ifdef __cplusplus
extern "C" {
#endif
#define FUNCTION __declspec(dllimport)
FUNCTION long __stdcall OpenDevice(long CardAddress);
FUNCTION __stdcall CloseDevice();
FUNCTION long __stdcall ReadAnalogChannel(long Channel);
FUNCTION __stdcall ReadAllAnalog(long *Data1, long *Data2);
FUNCTION __stdcall OutputAnalogChannel(long Channel, long Data);
FUNCTION __stdcall OutputAllAnalog(long Data1, long Data2);
FUNCTION __stdcall ClearAnalogChannel(long Channel);
FUNCTION __stdcall ClearAllAnalog();
FUNCTION __stdcall SetAnalogChannel(long Channel);
FUNCTION __stdcall SetAllAnalog();
FUNCTION __stdcall WriteAllDigital(long Data);
FUNCTION __stdcall ClearDigitalChannel(long Channel);
FUNCTION __stdcall ClearAllDigital();
FUNCTION __stdcall SetDigitalChannel(long Channel);
FUNCTION __stdcall SetAllDigital();
FUNCTION bool __stdcall ReadDigitalChannel(long Channel);
FUNCTION long __stdcall ReadAllDigital();
FUNCTION long __stdcall ReadCounter(long CounterNr);
FUNCTION __stdcall ResetCounter(long CounterNr);
FUNCTION __stdcall SetCounterDebounceTime(long CounterNr, long DebounceTime);
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define FUNCTION __declspec(dllimport)
FUNCTION long __stdcall OpenDevice(long CardAddress);
FUNCTION __stdcall CloseDevice();
FUNCTION long __stdcall ReadAnalogChannel(long Channel);
FUNCTION __stdcall ReadAllAnalog(long *Data1, long *Data2);
FUNCTION __stdcall OutputAnalogChannel(long Channel, long Data);
FUNCTION __stdcall OutputAllAnalog(long Data1, long Data2);
FUNCTION __stdcall ClearAnalogChannel(long Channel);
FUNCTION __stdcall ClearAllAnalog();
FUNCTION __stdcall SetAnalogChannel(long Channel);
FUNCTION __stdcall SetAllAnalog();
FUNCTION __stdcall WriteAllDigital(long Data);
FUNCTION __stdcall ClearDigitalChannel(long Channel);
FUNCTION __stdcall ClearAllDigital();
FUNCTION __stdcall SetDigitalChannel(long Channel);
FUNCTION __stdcall SetAllDigital();
FUNCTION bool __stdcall ReadDigitalChannel(long Channel);
FUNCTION long __stdcall ReadAllDigital();
FUNCTION long __stdcall ReadCounter(long CounterNr);
FUNCTION __stdcall ResetCounter(long CounterNr);
FUNCTION __stdcall SetCounterDebounceTime(long CounterNr, long DebounceTime);
#ifdef __cplusplus
}
#endif
To copy to clipboard, switch view to plain text mode
In file included from test2.cpp:1:
test2.h:22:7: warning: no newline at end of file
In file included from test2.cpp:2:
K8055d.h:8: error: expected constructor, destructor, or type conversion before '
;' token
K8055d.h:10: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:11: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:12: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:13: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:14: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:15: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:16: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:17: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:18: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:19: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:20: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:21: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:25: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:26: error: expected constructor, destructor, or type conversion before
';' token
test2.cpp:26:2: warning: no newline at end of file
mingw32-make[1]: *** [tmp\obj\release_shared\test2.o] Error 1
mingw32-make[1]: Leaving directory `D:/apps/Qt/4.1.1/test2'
mingw32-make: *** [release] Error 2
In file included from test2.cpp:1:
test2.h:22:7: warning: no newline at end of file
In file included from test2.cpp:2:
K8055d.h:8: error: expected constructor, destructor, or type conversion before '
;' token
K8055d.h:10: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:11: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:12: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:13: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:14: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:15: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:16: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:17: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:18: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:19: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:20: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:21: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:25: error: expected constructor, destructor, or type conversion before
';' token
K8055d.h:26: error: expected constructor, destructor, or type conversion before
';' token
test2.cpp:26:2: warning: no newline at end of file
mingw32-make[1]: *** [tmp\obj\release_shared\test2.o] Error 1
mingw32-make[1]: Leaving directory `D:/apps/Qt/4.1.1/test2'
mingw32-make: *** [release] Error 2
To copy to clipboard, switch view to plain text mode
I have included the libs like in qt3 .pro file:
Bookmarks