Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Com object ASP

Status
Not open for further replies.

derrick

Computer
Jun 13, 2001
40
I have created a simple .dll and registered it using regsvr32. I now want to use the COM object from an ASP page.

The object registers ok, but only if it is in "C:\WINNT\system". I thought it could be held anywhere but this does not appear to be the case (by using regsvr32 "pathname\filename".

When I try to use the COM object, using

set myObj = Server.CreateObject("Project1.Class1")
result = myObj.method1

the vbscript code using it does not do anything, not even an error message!

I have attempted this with several different COM objects that I have created with no success, although I can use in-built objects (such as ADODB) without any problems.

Any idea where I might be going wrong?

Suggestions welcome, thanks in advance.

Derrick
 
Replies continue below

Recommended for you

Further to the above, I have registered a COM object that I created using VB. I have then used the .dll file successfully in another VB program. Yet when I try to use the .dll with ASP it is totally ignored.

HELP!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor