O
oldwolf201
Unregistered / Unconfirmed
GUEST, unregistred user!
我用C++BUILDER写了一个带界面的DLL,
其中:
extern "C" __declspec(dllexport) bool __stdcall Login(char name[],char pass[])
{ OleInitialize(NULL);
Form2=new TForm2(Form2);
Form2->ShowModal();
Form2->bolSuc=true;
if(Form2->ShowModal()==mrOk)
.....
}
void __fastcall TForm2::Button1Click(TObject *Sender)
{
ModalResult = mrOk;
}
现在我想不按button1按纽自动继续执行程序,请问该如何实现?
其中:
extern "C" __declspec(dllexport) bool __stdcall Login(char name[],char pass[])
{ OleInitialize(NULL);
Form2=new TForm2(Form2);
Form2->ShowModal();
Form2->bolSuc=true;
if(Form2->ShowModal()==mrOk)
.....
}
void __fastcall TForm2::Button1Click(TObject *Sender)
{
ModalResult = mrOk;
}
现在我想不按button1按纽自动继续执行程序,请问该如何实现?