Solved

Class Wizard shuffles dispids

Posted on 1998-02-02
3
364 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
sumDigits challenge 9 170
sumNumber challenge 16 139
Prevent this page from creating additional dialogs. 3 622
Hibernate methods 2 77
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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