Solved

Manually Changing DISPID in OCX Control

Posted on 2006-06-15
2
307 Views
Last Modified: 2008-03-17

Hi ,
I am using the Class Wizard to generate properties and methods.
The class Wizards assigns the DISPID's sequentially.
Can anyone tell me how to change the DISPID ( to what ever i want )  after it has been generated by the Class Wizard.

Thanks.
0
Comment
Question by:jhav1594
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 16915464
Open the .idl/.odl files in a text editor and change them there to what you want them to be. Just take care that the values are consistent.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Getting IP address 8 89
C++ finding a sting in a char* string from a text file 3 122
How to convert MFC::CString to UTF8 wchar_t* 10 294
Why isn't object file created? 6 69
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

820 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