23 lines
879 B
C++
23 lines
879 B
C++
// 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 TEST_LIB_DYN_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
|
|
// TEST_LIB_DYN_API functions as being imported from a DLL, whereas this DLL sees symbols
|
|
// defined with this macro as being exported.
|
|
#ifdef TEST_LIB_DYN_EXPORTS
|
|
#define TEST_LIB_DYN_API __declspec(dllexport)
|
|
#else
|
|
#define TEST_LIB_DYN_API __declspec(dllimport)
|
|
#endif
|
|
|
|
// This class is exported from the test_lib_dyn.dll
|
|
class TEST_LIB_DYN_API Ctest_lib_dyn {
|
|
public:
|
|
Ctest_lib_dyn(void);
|
|
// TODO: add your methods here.
|
|
};
|
|
|
|
extern TEST_LIB_DYN_API int ntest_lib_dyn;
|
|
|
|
TEST_LIB_DYN_API int fntest_lib_dyn(void);
|