浪
浪风
Unregistered / Unconfirmed
GUEST, unregistred user!
看了网上的介绍,用VC写了一个示例DLL:
Second.cpp
#include "stdafx.h"
extern "C" __declspec(dllexport)
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
void __stdcall Hello()
{
MessageBox(NULL,"AAAAAA","Hai",MB_OK);
}
SecondDll.def
LIBRARY SecondDll
EXPORTS
Hello
但是在Delphi里调用却老是报错,请各位多多指点。
Second.cpp
#include "stdafx.h"
extern "C" __declspec(dllexport)
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
void __stdcall Hello()
{
MessageBox(NULL,"AAAAAA","Hai",MB_OK);
}
SecondDll.def
LIBRARY SecondDll
EXPORTS
Hello
但是在Delphi里调用却老是报错,请各位多多指点。