![]() |
#2
初始元灵2016-10-19 17:36
|
#ifdef CustomDLL_EXPORTS
#define CustomDLL_API__declspec(dllexport)
#else
#define CustomDLL_API__declspec(dllimport)
#endif
//声明自定义导出函数
CustomDLL_APIint DLLfuncAdd(int a,int b);
//我一脸懵逼
f:\program files\microsoft visual studio\myprojects\customdll\customdll.h(7) : error C2146: syntax error : missing ';' before identifier 'DLLfuncAdd'
f:\program files\microsoft visual studio\myprojects\customdll\customdll.h(7) : error C2501: 'CustomDLL_APIint' : missing storage-class or type specifiers
f:\program files\microsoft visual studio\myprojects\customdll\customdll.h(7) : fatal error C1004: unexpected end of file found