?
Solved

Class Wizard shuffles dispids

Posted on 1998-02-02
3
Medium Priority
?
393 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

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

Accepted Solution

by:
chensu earned 400 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 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