The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

Question about MFC ActiveX Full Control Property Page GUIDs

Any MFC ActiveX Control guru's out there to answer this.

in the following code.. for WHAT purpose and WHY is the OXCID offest value useind in all the proeprty page control classes.. see below

//-- BEGIN baseCtrl.h --
... // deleted stuff
#define OCXID 50    //<<*** ID IN QUESTION
... // deleted stuff
//-- END baseCtrl.h --

//-- BEGIN PPMapObject.h --
#include "baseCtrl.h"
... //delete lots of stuff
// Initialize class factory and guid
// {B70D60C1-E733-11D0-B8F0-0020AF344E0A}
    OCXID + 0xb70d60c1, 0xe733, 0x11d0, 0xb8, 0xf0, 0x0, 0x20, 0xaf, 0x34, 0x4e, 0xa)

Any idea why OCXID is added to the longword portion of all the property page control GUID in thie MFC component.
Heston T. Holtmann Send private email
Monday, May 15, 2006
I think it's so a template can generate code without having to generate a "unique" GUID each time.
Monday, May 15, 2006

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
Powered by FogBugz