Link to home
Start Free TrialLog in
Avatar of jhav1594
jhav1594

asked on

writing methods in OCX/ ActiveX control

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.
ASKER CERTIFIED SOLUTION
Avatar of romanm
romanm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jhav1594
jhav1594

ASKER


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.