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 。
解决方案 »
- 线程操作ADO问题(无效的窗口句柄)
- ?delhi自带的ado和SDAC控件那个快?我在KBMMW中间层里面使用ADO,好像有(RtlTraceDatabaseEnumerate问题 )
- 服务程序如何打开帮助文件?
- Insert 数据太慢,有没有更好的方法?在线等待。。。
- 如何固定窗口大小?
- 如何将RTL连接进应用程序,使程序在任何地方都能运行(在不进行安装的情况下)
- 一个我自己都不知道该如何描述的底层问题-高手过招
- delphi中怎样计算datetimepicker获取的天数????????
- 怎样定位一个数据集中的一条记录,使它成为当前记录?
- 请看这一个加密的选项?
- 百分求解:如何在 InstallShield Express 中创建反安装的快捷方式?
- 关于日期查询的问题
很简单的,先建一过程并设置好参数再写语句,用菜单project里的web deploy 和web deployment option...发布就可以了