Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Accessing Methods of an user defined object in ASP

Posted on 1998-07-21
2
Medium Priority
?
193 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

782 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