Solved

Class Wizard shuffles dispids

Posted on 1998-02-02
3
322 Views
Last Modified: 2013-11-19
I noticed Class Wizard shuffles dipids around when you add an automation property.  Once we release our product, I assume we can not let the dispids change for existing Methods/Properties.  Does this mean we have to stop using Class Wizard?
0
Comment
Question by:skin
  • 2
3 Comments
 

Author Comment

by:skin
ID: 1315401
Adjusted points to 100
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1315402
The ClassWizard generates those DISP_ macros that cause the framework to generate the DISPID. Instead, you can use those DISP_ macros that allow you to determine the DISPID. You may still use ClassWizard, just change the macros.

DISP_FUNCTION_ID(theClass, szExternalName, dispid, pfnMember, vtRetVal, vtsParams)
DISP_PROPERTY_ID(theClass, szExternalName, dispid, memberName, vtPropType)
DISP_PROPERTY_NOTIFY_ID(theClass, szExternalName, dispid, memberName, pfnAfterSet, vtPropType)
DISP_PROPERTY_EX_ID(theClass, szExternalName, dispid, pfnGet, pfnSet, vtPropType)
DISP_PROPERTY_PARAM_ID(theClass, szExternalName, dispid, pfnGet, pfnSet, vtPropType, vtsParams)
DISP_DEFVALUE_ID(theClass, dispid)
0
 

Author Comment

by:skin
ID: 1315403
Thanks!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

22 Experts available now in Live!

Get 1:1 Help Now