delphi7下卸载自动的indy,安装indy9.0.18后开发web service项目,加上SockApp会提示Unit IndySockTransport was compiled with a different version of IdTCPConnection.TIdTCPConnection无法编译通过。但如果不加SockApp则
if WebRequestHandler <> nil then
WebRequestHandler.WebModuleClass := WebModuleClass;
WebRequestHandler 将不会创建。
这时只要在search library中加入 C:\Program Files\Borland\Delphi7\Source\Internet(改成你本机的路径即可)就可顺利通过。
同时注意接口使用stdcall方式参数入栈。
delphi xe下cookie 写多个cookie只能读一个,可能是indy问题。