发信人: win1998@GZ()
整理人: teleme(2001-01-18 16:50:29), 站内信件
|
标 题: Re: 放招:用delphi 调试isapi dll In nt4.0+ iis4.0!! 发信站: 网易虚拟社区 (Sat Aug 12 10:35:15 2000), 站内信件
: 放招:用delphi 调试isapi dll In nt4.0+ iis4.0!!How to debug an ISAPI DLL wit h Delphi under NT 4.0 with IIS version 4
url: http://community.borland.com/article/0,1410,20901,00.html
Make sure that the user name you use to do all your developing with fo r WinNT, has Administrator rights. You need to add some settings to th e user, and in order to do so the user must have Administrator rights.
Run the User manager for the user that is going to do the debugging. S tart | Programs | Administrative Tools (Common) | User Manager. On the Menu bar select Policies | User Rights. Make sure the Show Advanced U ser Rights box is checked. Hit the down arrow and scroll through the l isting of the different Rights, you should see what you need to add.
Give this user the following permissions:
Log on as a Service
Act as part of the operating system
Generate security audits
You will need IIS to run as a process instead of a service. To do this run the registry file labeled: Regproc.reg. This file will make the n ecessary changes to you registry that makes IIS run as a process. The other registry file: Regserv.reg, will undo the changes made by the pr evious registry file.
Run as a Process: Regproc.reg (to be able to debug run this one)
Run as a Service: Regserv.reg (this will undo the previous reg setting )
Now stop these services and set them to manual: WWW publishing service , FTP Service and IIS Admin.
Restart your computer.
Open Delphi and from the menu bar, select Project | Options -> Linker and select Use Include remote debugger symbols option.
Now in Delphi, open the DLL project and use the following parameters:
Run: C:\Winnt\system32\inetsrv\inetinfo.exe
Parameters: -e w3svc
-- xuanzhoucan,[email protected]
※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 202.96.124.178]
|
|