My c++ function is given below,
# define MyFunction _declspec(dllexport) extern "C" { MyFunction int AddNumbers(int a, int b) { return a + b; }