dll问题请教
我用BCB做了一个包含VCL的dll文件,但是在pb下调用时总是提示"错误的外部程序调用",请问各位是何原因?
附:部分dll程序代码
#include "Unit2.h"
#include <vcl.h>
#include <windows.h>
#pragma hdrstop
#pragma argsused
int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
return 1;
}
extern "C" __declspec(dllexport) bool testform();
bool testform()
{
TForm2 testit=new TForm2(NULL);
testit->ShowModel();
delete testit;
}