A Example for DLLs
This commit is contained in:
17
DynamicLinkLibrary/my_str-dll/my_str.h
Normal file
17
DynamicLinkLibrary/my_str-dll/my_str.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifdef MY_STR_BUILD_DLL
|
||||
#define MY_STR_API __declspec(dllexport) //If isBuild, Use EXPORT
|
||||
#else
|
||||
#define MY_STR_API __declspec(dllimport) //If is not used for Build, Use IMPORT
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
//Uses
|
||||
MY_STR_API double evaluate(const char* exp);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user