#ifndef SUB_H #define SUB_H #ifdef _DLLAPI #define DLLAPI _declspec(dllexport) #else #define DLLAPI _declspec(dllimport) #endif //int DLLAPI sub(int a, int b); bool DLLAPI Sub(int a, int b, int *d); //char DLLAPI Sub(int a, int b, char *d); #endif