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 。
很简单的,先建一过程并设置好参数再写语句,用菜单project里的web deploy 和web deployment option...发布就可以了