iw改ISAPI问题(50分)

  • 主题发起人 主题发起人 liujiajlu
  • 开始时间 开始时间
L

liujiajlu

Unregistered / Unconfirmed
GUEST, unregistred user!
出错信息:format '%1'invalid or incompatible with argument
按照:
1、改变Program 子句为 library.

2、改变 IWInitStandAlone 为IWInitISAPI

请各位指点迷津
 
出错信息: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;
呵呵,好转吧!!!
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
后退
顶部