[一] DLL发布问题,我自己写了个websnap的dll放到iis 5.0上使用,可出现了下面的出错信息,请问如何解决?
Object factory for class TWebResponseWrapper missing !
答:在google搜到这这篇短文,可解决这个发布问题:
------------------------------------------------------------------------------------
Why do I get the error "Object factory for class TWebResponseWrapper missing"?
From Deploy.txt (that comes with Delphi 6, I took the liberty of correcting the spelling):
... you must register both WebBrokerScript.tlb
and stdvcl40.dll on the web server. TLB files cannot be
registered with the Microsoft regsvr32 program, but must
be registered with tregsvr, located in the Delphi bin
directory. You can copy tregsvr to the web server, and
register the files with:
tregsvr WebBrokerScript.tlb
and
tregsvr stdvcl40.dll
no found stdvcl40.dll , found stdvcl40.tlb to stead
----------------------------------------------------------------------------------
很简单,把delphi或bcb的tregsvr.exe和stdvcl40.tlb和 WebBrokerScript.tlb
复制到IIS服务器的windows系统目录中,并执行注册:
tregsvr WebBrokerScript.tlb
tregsvr stdvcl40.dll
可写成批命令,以后,就可用WebSnap技术发布你的.dll,做动态性的网页了