Solved

Accessing Methods of an user defined object in ASP

Posted on 1998-07-21
2
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

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.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

623 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