Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Jun 13, 2001
Messages
40
Location
GB
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
 
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

Back
Top