Solved

Manually Changing DISPID in OCX Control

Posted on 2006-06-15
2
302 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

831 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