为什么不能创建对象?解决给分!
工具vb:做了个activeX dll
生成文件:connection.vbp和open.cls
运行无错
make connection.dll 到c:\connection.dll
运行: regsvr32 c:\connection.dll 注册成功
下面是asp文件创建对象语句:
<%@ Language=VBScript %>
<%
Set ObjReference=Server.CreateObject("connection.open") '本行出错
set MyRec=Server.CreateObject("ADODB.Recordset")
Set MyRec=objReference.GetRecSqlOleDb("select * from client")
Response.Write MyRec.fields(0)
'....
用IE5运行该页出错提示:
错误类型:
服务器对象, ASP 0177 (0x800401F3)
无效的 ProgID。 若要获取关于此消息的更多的信息,请访问 Microsoft 联机支持站点: http://www.microsoft.com/contentredirect.asp 。
/sec.asp, 第 3 行