Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Accessing Methods of an user defined object in ASP

Posted on 1998-07-21
Medium Priority
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"

how can i solve this problem
Question by:rvsamuel
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

Expert Comment

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.
LVL 28

Accepted Solution

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


Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

670 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