Solved

Accessing Methods of an user defined object in ASP

Posted on 1998-07-21
2
184 Views
Last Modified: 2013-12-25
I have created an OCX control using MFC ,register it in the server and create an instance of the object using

x= server.createobject("progid")

how can i access the methods of x.
i tried x.methodname = "value"
it gives CATSTROPHIC FAILURE ERROR

how can i solve this problem
0
Comment
Question by:rvsamuel
2 Comments
 
LVL 1

Expert Comment

by:acsmith
ID: 1858616
I had the same error a while back, and it was due to me not giving the progid properly. Also I think you need to use the set keyword. This is the syntax I use:
set myobject = server.createobject("mydll.arrays")

the mydll.arrays bit is what appears in the progid in the registry for my dll. Hope this helps.
0
 
LVL 28

Accepted Solution

by:
sybe earned 50 total points
ID: 1858617
set myobject = server.createobject("progid")
myvar = myobject.method("parameters")


0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question