一个初学者的问题
使用动态连接库时要加入以下代码:
#include <vcl.h>
#pragma hdrstop
#include "DllFunc.h"
#include "About.h"
//---------------------------------------------------------------------------
void __export ShowAbout()
{
frmAbout = new TfrmAbout(Application);
frmAbout->ShowModal();
delete frmAbout;
}
extern "C" void __export AnotherAbout()
{
frmAbout = new TfrmAbout(Application);
frmAbout->ShowModal();
delete frmAbout;
}
extern "C" void __export ParaAbout(char * author, char * app)
{
frmAbout = new TfrmAbout(Application);
frmAbout->lbAuthor->Caption = author;
frmAbout->lbApplication->Caption = app;
frmAbout->ShowModal();
delete frmAbout;
}
#pragma package(smart_init)
请问这三个函数是怎样添加上的,我用NewMethod方法添加好象不对;