雨
雨林18
Unregistered / Unconfirmed
GUEST, unregistred user!
我写了个调用DLL的事件如下<br>procedure TForm1.N1Click(Sender: TObject);<br>var<br> DLLHandle: THandle;<br> DLLSub: InvokeDLLForm;<br>begin<br> DLLHandle :=LoadLibrary(PChar(extractfilepath(application.ExeName)+'dll/'+'prjDLL.dll'));<br>if DLLHandle = 0 then showmessage('调入失败!');<br> if DLLHandle <> 0 then<br> begin<br> @DLLSub := GetProcAddress(DLLHandle, 'CreateDLLForm');<br> if Assigned(DLLSub) then<br> DLLForm := DLLSub(Application, Screen);<br> end;<br> end;<br><br>但是现在是在form1主窗体里可以调用多个prjDLL.dll窗口,我现在想form1主窗体里只能调用一个窗口如何判断!高手指点<br><br>还有一个问题,我在dll中定义了一个function saveziyu:boolean;stdcall;<br>在主窗体中如何调用,请高手指点!!!