Solved

writing methods in OCX/ ActiveX control

Posted on 2006-06-28
2
228 Views
Last Modified: 2010-04-17
Hi,

Is it possible to write "Get / Set methods" in OCX control using VC++ (with or without using the Class Wizard).

The reason i am asking is that i have to write two methods

GetConfigurationSetName() and SetConfigurationSetName(LPCTSTR param1) but they have to have the same DISPID.

any ideas on how to get this done.
0
Comment
Question by:jhav1594
2 Comments
 
LVL 3

Accepted Solution

by:
romanm earned 500 total points
ID: 17003805
use the wizard to add a property,
that would generate a get / set functions.

in c++ you will use get_Param1 and set_Param1
in vb or jscripts it will be:
  object.Param1 = xxx;
 or xxx = object.Param1
0
 

Author Comment

by:jhav1594
ID: 17004110

for eg, when i want to write a property, there is a "Get/Set" option available but when i use the Class Wizard to add a method. the "Get/Set" option is not available.

How do i make the "get/set" option available for methods so that the "Get method" and "Set method" have the same DISPID.

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
noX challenge 17 76
groupSum6 challenge 6 35
Magic Software info 18 103
creating threads in delphi 1 54
This article will show, step by step, how to integrate R code into a R Sweave document
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

706 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

18 Experts available now in Live!

Get 1:1 Help Now