Created
February 1, 2018 16:22
-
-
Save funvill/ccbe2b1f79c59a5d82fa9edcf598ca9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// --------------------------------------- | |
// Export.h | |
/// --------------------------------------- | |
#define DllExport extern "C" | |
DllExport int ExportTestVersion() { | |
return 2018 ; | |
} | |
DllExport int ExportCPPTestFunction( | |
/// --------------------------------------- | |
// CPPTest.cpp | |
/// --------------------------------------- | |
#include "Export.h" | |
class CFoo { | |
public: | |
int TestFunction() { | |
return 130 ; | |
} | |
}; | |
DllExport int ExportCPPTestFunction() { | |
CFoo bar ; | |
return bar.TestFunction() ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment