lqc.dll   library lqc;{ Important note about DLL memory management: ShareMem must be the
  first unit in your library's USES clause AND your project's (select
  Project-View Source) USES clause if your DLL exports any procedures or
  functions that pass strings as parameters or function results. This
  applies to all strings passed to and from your DLL--even those that
  are nested in records and classes. ShareMem is the interface unit to
  the BORLNDMM.DLL shared memory manager, which must be deployed along
  with your DLL. To avoid using BORLNDMM.DLL, pass string information
  using PChar or ShortString parameters. }uses
  SysUtils,
  Classes;{$R *.res}function  mymin(x,y:integer):integer;stdcall;
begin
   if x<y  then mymin:=x  else mymin:=y;
end;
function  mymax(x,y:integer):integer;stdcall;
begin
   if x>y  then mymax:=x  else mymax:=y;
end;exports
    mymin,
    mymax;
begin
end. 注册:  
     regsvr32    "c:\study\lqc.dll"
      ----------------但  注册未成功      ——————————
     ??? 请问是什么原因。
asp中调用: <% 
                dim  hh,ii,obj,maxrs,minrs
                hh=23
                ii=33
                set obj=server.createobject("lqc")
               
                maxrs=obj.mymax(hh,ii)
                minrs=obj.mymin(hh,ii)
                response.write maxrs
                rsponse.write minrs
%>
错误:
 
 
Microsoft VBScript 编译器错误 错误 '800a03f6' 
缺少 'End' /iisHelp/common/500-100.asp,行242 服务器对象 错误 'ASP 0177 : 800401f3' Server.CreateObject 失败 /zxks/bmgl/bkdll.asp,行48 无效的 ProgID。 若要获取关于此消息的更多的信息,请访问 Microsoft 联机支持站点: http://www.microsoft.com/contentredirect.asp 。 
 
 

解决方案 »

  1.   

    asp中调用dll?好像不能直接调用做成组件吧我也不是太清楚,好像前两天看见过类似的贴子http://expert.csdn.net/Expert/topic/1751/1751785.xml?temp=6.184024E-02可能对你有帮助
      

  2.   

    最终目的:通过编写DLL ,来验证网站登陆用户名及密码与数据库中的是否一样,以提高网络安全性能。
      

  3.   

    new-others-activex-active server object--ok;
      

  4.   

    我做了个打印的连接,用的是ActiveFormX:
    很简单的,先建一过程并设置好参数再写语句,用菜单project里的web deploy 和web deployment option...发布就可以了