Solved

Accessing Methods of an user defined object in ASP

Posted on 1998-07-21
2
181 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Read about why website design really matters in today's demanding market.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This video teaches users how to migrate an existing Wordpress website to a new domain.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now