我使用Intraweb创建一个程序,将一个可以正确执行的exe程序转换为dll程序时,为什么在添加TADOConection时不能正确发布到iis上生成网页?而去掉TADOConection组件就可以。请问是不是在连接数据库时出错了,应该注意什么?谢谢各指教!

解决方案 »

  1.   

    If you want to deploy your IntraWeb ISAPI application with ADO Connections, remember to add the following export clause after your uses lines in the main project file (.dpr). Without it your application will not be able to talk to your DB Server or do thread pooling.
    exports
    GetExtensionVersion,
    HttpExtensionProc,
    TerminateExtension;
    Hope it helps.Thanks,Ali
      

  2.   

    exports
    GetExtensionVersion,
    HttpExtensionProc,
    TerminateExtension;是这样的,还是不对。只要把tadoconection添加上去,就算没有链接数据库也是不能把一个dll程序发布到iis上。不知何解?
      

  3.   

    ado放在dll需要先初始化ole运行时,退出时再释放ole运行时。
    在ActiveX单元中有这两个函数
    CoInitialize(nil)
    CoUnInitialize