这是dll中的全部代码:<br>我在运行时候在任务栏中显示2个,一个是主程序的,一个是dll里窗体的,<br>我不是让你们找代码错误,我是说怎么解决,让dll里窗体在任务栏中不显示<br>一个程序在任务栏中显示2个不太好吧,<br><br><br>library guanlidll;<br><br>{ Important note about DLL memory management: ShareMem must be the<br> first unit in your library's USES clause AND your project's (select<br> Project-View Source) USES clause if your DLL exports any procedures or<br> functions that pass strings as parameters or function results. This<br> applies to all strings passed to and from your DLL--even those that<br> are nested in records and classes. ShareMem is the interface unit to<br> the BORLNDMM.DLL shared memory manager, which must be deployed along<br> with your DLL. To avoid using BORLNDMM.DLL, pass string information<br> using PChar or ShortString parameters. }<br><br>uses<br> windows,<br> dialogs,<br> forms,<br> SysUtils,<br> Classes,<br> fzru in 'fzru.pas' {fzrtj};<br><br>{$R *.res}<br><br>var<br>formid,left,top,white,hite:integer;<br><br>function weizhi(n1,n2,n3,n4:Integer):Integer;stdcall;<br>begin<br>left:=n2;<br>top:=n1;<br>white:=n3;<br>hite:=n4;<br>end;<br><br>procedure OpenMyForm(handle:HWND);stdcall;<br>begin<br> if(formID=0) then<br> begin<br> Application.Handle:=handle;<br> Application.CreateForm(Tfzrtj, fzrtj);<br> formID:=1;<br> end;<br> fzrtj.Left:=left;<br> fzrtj.Top:=top;<br> fzrtj.Width:=white;<br> fzrtj.Height:=hite;<br> //office_mianshi.adoquery1.ConnectionString:=db;<br><br> fzrtj.ShowModal();<br>end;<br><br>procedure CloseMyForm();stdcall;<br>begin<br> if(formID=1) then<br> begin<br> fzrtj.Close();<br> formID:=0;<br> end;<br>end;<br>exports<br>weizhi,<br>OpenMyForm,<br>CloseMyForm;<br>end.