#include "stdafx.h" #include "CB.h" extern "C" EXPORT int WINAPI sum (int x, int y)//C2144 and C4430 { return x+y; }
#define CBExport __declspec(dllexport) #ifdef __cplusplus extern "C" { #endif extern "C" EXPORT int WINAPI sum (int x, int y);//C2144 and C4430 #ifdef __cplusplus } #endif
JanuSatish wrote:#define CBExport __declspec(dllexport)
#define EXPORT __declspec(dllexport)
extern
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)