110,566
社区成员
发帖
与我相关
我的任务
分享
int APIENTRY abc() {
return 10;
}
int APIENTRY abc();
EXPORTS
abc
Private Declare Function abc Lib "TEST.dll" () As Long
[DllImport( "TEST.dll", EntryPoint = "abc" )]
private static extern int abc();
.h
extern "C" _declspec(dllexport) int APIENTRY abc();
.cpp
extern "C" _declspec(dllexport) int APIENTRY abc()
{
return 10;
}
extern "C" _declspec(dllexport) int APIENTRY abc()
{
return 10;
}