请问,如何在win2000中调试vc的isapi程序(50分)

  • 主题发起人 主题发起人 program
  • 开始时间 开始时间
如果是在95/98下,使用PWS可以进行调试。
2000我没用过,相信应该也没有问题吧。
 
borland的帮助里面抄的:

To debug a Web server application using Microsoft IIS server (version 3 or earlier), choose Run|Parameters and set your application抯 run parameters as follows:

Host Application: c:/winnt/system32/inetsrv/inetinfo.exe

Run Parameters: -e w3svc

This starts the IIS Server and allows you to debug your ISAPI DLL.

Note: Your directory path for inetinfo.exe may differ from the example.

If you are using version 4 or later, you must first make some changes to the Registry and the IIS Administration service:

1 Use DCOMCnfg to change the identity of the IIS Admin Service to your user account.
2 Use the Registry Editor (REGEDIT) or other utility to remove the 揕ocalService?keyword from all IISADMIN-related subkeys under HKEY_CLASSES_ROOT/AppID and HKEY_CLASSES_ROOT/CLSID. This keyword appears in the following subkeys:

{61738644-F196-11D0-9953-00C04FD919C1} // IIS WAMREG admin Service

{9F0BD3A0-EC01-11D0-A6A0-00A0C922E752} // IIS Admin Crypto Extension
{A9E69610-B80D-11D0-B9B9-00A0C922E750} // IISADMIN Service

In addition, under the AppID node, remove the 揜unAs?keyword from the first two of these subkeys. To the last subkey listed, add 揑nteractive User?as the value of the 揜unAs?keyword.

3 Still using the Registry Editor, add 揕ocalService32?subkeys to all IISADMIN-related subkeys under the CLSID node. That is, for every subkey listed in step 2 (and any others under which you found the 揕ocalService?keyword), add a 揕ocalService32?subkey under the CLSID/<subkey> node. Set the default value of these new keys to

c://winnt//system32//inetsrv//inetinfo.exe -e w3svc

(the path for inetinfo.exe may differ for your system).

4 Add a value of 揹word:3?to the 揝tart?keyword for the following subkeys:

[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/IISADMIN]

[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MSDTC]
[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/W3SVC]

5 Stop the WWW, FTP, and IISAdmin services from the Microsoft Management Console or the Services dialog box in the control panel. As an alternative, you can simply do KILL INETINFO using KILL.EXE from the NT Resource Kit.

Now you are ready to debug in the same way as when using IIS version 3 or earlier. That is, choose Run|Parameters and set your application抯 run parameters as follows:

Host Application: c:/winnt/system32/inetsrv/inetinfo.exe

Run Parameters: -e w3svc

Note: When you have finished debugging, you will need to back out all the Registry changes you made in steps 2 through 4.
 
上面的是Delphi的调试方法吧。我说的是vc,能不能具体地说说在vc中如何调试?
 
附加功能 将问题提前
 
program:如果还想接着讨论请定期提前自己的帖子,如果不想继续讨论请结束帖子。
 
多人接受答案了。
 
后退
顶部