Skip to content

Instantly share code, notes, and snippets.

@funvill
Created February 1, 2018 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save funvill/ccbe2b1f79c59a5d82fa9edcf598ca9c to your computer and use it in GitHub Desktop.
Save funvill/ccbe2b1f79c59a5d82fa9edcf598ca9c to your computer and use it in GitHub Desktop.
/// ---------------------------------------
// 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