软件注册站
热情软件屋

 
注册DLL时,发生错误:DllRegisterServer entry point was not found
编号: QA003401    
建立日期: 2000年10月15日 最后修改日期: 2000年10月15日
所属类别: C/C++ - ActiveX技术
   
    操作系统: NT4.0
    编程工具: VC和asp
    问题:需要在asp中调用自己编写的dll程序。我知道使用其他程序调用vc的dll需要先将该dll进行注册,可是我注册时发生错误,错误信息如下:
    dd.dll was loaded,but the DllRegisterServer entry point was not found.
    DllRegisterServer may not be exported ,or a corrupt version of dd.dll may be in memory.Consider using PView to detect and remove it.
    我查找了一下,硬盘并没有其他的dd.dll文件,所以我不知道是不是vc编的dll在注册时需要其他的要求?请帮忙!
    是一个普通的dll,这样吧。我把我的程序写一下。一共是包括两个文件 t.h和test.cpp
    t.h的内容:
    #include <windows.h>
    _declspec(dllexport) double AreaRect(double length,double width);
    test.cpp的内容:
    #include "t.h"
    _declspec(dllexport) double AreaRect(double length,double width)
    {
     return length* width;
    }
    就这么多了。
    水平: 刚入门(李新)
   
    DLL有两种,一种是标准DLL,另一种是ActiveX DLL。只有ActiveX DLL中包括DllRegisterServer函数,才能进行注册,才能被ASP调用。而标准的DLL虽然可以被VB等工具调用,但无法使用RegSvr32注册,也不能被ASP直接调用。标准DLL和ActiveX DLL的调用完全不同。
    要在VC中建立工程时选择ATL COM AppWizard,选择DLL方式,这样可以建立ActiveX DLL。生成工程后,在ClassView窗口的Classes上右击,从菜单上选择New ATL Object,然后选择添加ActiveX Server Component,你需要为该类添加你自己的方法和属性。编译后生成的DLL经过注册就可以被ASP调用,

    

此问题由李海回答。

附加关键字:编程, 源程序, programming, source code, C/C++, MFC, C++ Builder, Borland C++, Turbo C, C, BCB, ActiveX技术, activex, com, ado

   
 
把这个问题推荐给朋友
   
 
   
您的意见类别
您的名字
您的电子邮件
您的建议(请尽可能详细)
 
 

版权所有 1997-2008 热情软件屋
如果您有任何建议和意见, 请给我发个电子邮件 askpro@china-askpro.com
Web Designed by ZebraStudio