// The following ifdef block is the standard way of creating macros which make exporting // from a DLL simpler. All files within this DLL are compiled with the P4API_EXPORTS // symbol defined on the command line. this symbol should not be defined on any project // that uses this DLL. This way any other project whose source files include this file see // P4API_API functions as being imported from a DLL, whereas this DLL sees symbols // defined with this macro as being exported. #ifdef P4APITEST_EXPORTS #define P4APITEST_API __declspec(dllexport) #else #define P4APITEST_API __declspec(dllimport) #endif // This class is exported from the P4API.dll class P4APITEST_API CP4APITest { public: CP4APITest(void); // TODO: add your methods here. }; extern P4APITEST_API int nP4APITest; P4APITEST_API int fnP4APITest(void);
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 7502 | Robert Cowham |
- Updated for 2009.1 API - use static version (/MT rather than /MD) - Fixed SetProg/SetVersion calls - ensures they are called at correct moment. - Add SetProtocol - Added some more tests/examples |
||
#1 | 6468 | Robert Cowham | Draft version. |