3,879
社区成员




extern "C" __declspec(dllexport)int sub(int q)
{
char c[25];
int d=q-4;
itoa(d,c,10);
MessageBox(0,c, "a-b;结果:", 1);
return 0;
}
void CALLBACK
EntryPoint(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow);
更详细的参考https://support.microsoft.com/en-us/kb/164787
extern "C" __declspec(dllexport)int sub(HWND hwnd, HINSTANCE hinst, LPSTR q, int nCmdShow)
{
char c[25];
int d=atoi(q)-4;
itoa(d,c,10);
MessageBoxA(0,c, "a-b;结果:", 1);
return 0;
}
// 原调用就可