×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

VB Com object ASP

VB Com object ASP

VB Com object ASP

(OP)
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

RE: VB Com object ASP

(OP)
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!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources