#include <windows.h>
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
extern "C" __declspec(dllexport) BOOL TestFunc(char *lpszBuff, int iSize)
{
lstrcpyn(lpszBuff, "this is my test program", iSize);
return TRUE;
}
//delphi
/*function TestFunc(lpszBuff : PChar;
iSize : Integer) : BOOL;
stdcall;
external 'dlldemo.dll';*/