出错信息:format '%1'invalid or incompatible with argument
你只需关闭delphi 重新启动就行了
然后不仅仅是改变由Program 子句转为 library的问题,你可以新建一program程序,看看工程的生成过程,把中间引用单元的拷贝到中间就可以了如
library Yysjfxjc; //生成dll
uses
ISAPIApp,
IWInitISAPI,
ServerController in 'ServerController.pas' {IWServerController: TIWServerController},
ULogin in 'ULogin.pas' {FrmLogin: TIWFormModuleBase},
UserSessionUnit in 'UserSessionUnit.pas' {IWUserSession: IWUserSessionBase},
UMain in 'UMain.pas' {FrmMain: TIWAppForm},
UFramMenu in 'UFramMenu.pas' {FramMenu: TFrame},
{$R *.RES}
exports
GetExtensionVersion,
HttpExtensionProc,
TerminateExtension;
begin
IWRun;
////////////////////////////////////////
program Yysjfxjc;//生成exe
uses
Forms,
IWMain,
ServerController in 'ServerController.pas' {IWServerController: TIWServerController},
ULogin in 'ULogin.pas' {FrmLogin: TIWFormModuleBase},
UMain in 'UMain.pas' {FrmMain: TIWAppForm},
UFramMenu in 'UFramMenu.pas' {FramMenu: TFrame},
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TformIWMain, formIWMain);
Application.Run;
呵呵,好转吧!!!