Click here to Skip to main content
12,294,380 members (65,268 online)
Click here to Skip to main content
Add your own
alternative version

Stats

80.7K views
882 downloads
20 bookmarked
Posted

GUIDGen Developer Studio AddIn

, 26 Dec 2001
Rate this:
Please Sign up or sign in to vote.
An Add-In that replaces and extends the GUID Generator component included with Developer Studio
<!-- Download Links --> <!-- Article image -->

Sample Image - GUIDGen.gif

Description

GUIDGen is an add-in that replaces and extends the GUID Generator component included with Developer Studio. It supports all the formats provided by the standard component, plus two other commonly-used formats. It also has the ability to directly insert the results in the IDE's text editor.

Installation

To install this VC add-in, copy GUIDGen.dll to the <devstudio>\SharedIDE\AddIn directory, where <devstudio> is your DevStudio directory. Restart DevStudio and the add-in will automatically be added. Go to the Tools|Customize menu item and click on the Add-Ins and Macro Files tab. Check the GUID Generator option and a new toolbar button will be added to DevStudio. The add-in will now be reloaded whenever DevStudio starts.

Usage

To use the GUID Generator add-in, click on the add-in button and select one of the options. The add-in will then insert a new GUID in the selected format in the current active document or copy the text to the clipboard.

Supported formats

  1. Using the IMPLEMENT_OLECREATE macro
    // {DEF47E1-E23A-11D3-B4D0-8208CCE0C829}
    IMPLEMENT_OLECREATE(<< class >>, << external_name >>,
    0x0DEF47E1, 0xE23A, 0x11D3, 0xB4, 0xD0, 0x82, 0x08, 0xCC, 0xE0, 0xC8, 0x29);
  2. Using the DEFINE_GUID macro
    // {DEF47E6-E23A-11D3-B4D0-8208CCE0C829}
    DEFINE_GUID(<< name >>,
    0xDEF47E6, 0xE23A, 0x11D3, 0xB4, 0xD0, 0x82, 0x08, 0xCC, 0xE0, 0xC8, 0x29);
  3. Creating a static GUID
    // {DEF47E8-E23A-11D3-B4D0-8208CCE0C829}
    static const GUID << name >> =
    { 0xDEF47E8, 0xE23A, 0x11D3, { 0xB4, 0xD0, 0x82, 0x08, 0xCC, 0xE0, 0xC8, 0x29 } };
  4. Using the standard registry format
    {DEF47EA-E23A-11D3-B4D0-8208CCE0C829}
  5. Using a "plain", undecorated format
    DEF47EC-E23A-11D3-B4D0-8208CCE0C829
  6. Using the uuid() format
    __declspec(uuid("DEF47EE-E23A-11D3-B4D0-8208CCE0C829"))

When selecting any of the first three formats, GUIDGen will work in "batch mode", creating a new GUID each time the "Insert" or "Copy" buttons are clicked, but the dialog will not be closed. The dialog will be closed when the "Exit" button is pressed. For the other formats the dialog will be closed after the button is pressed.

GUIDGen can optionally include an unformatted GUID as a comment for the first three supported formats.

Updates

02/12/2001Added a button to directly insert a new GUID in the selected format in the current active document.
03/08/2001Fixed "missing zeros in GUID" bug. Thanks to Joseph Dempsey for reporting it.
12/27/2001Added the option to generate "classic" GUIDs: those generated by UuidCreateSequential instead of UuidCreate. For security reasons, UuidCreate was modified so that it no longer uses a machine's MAC address to generate UUIDs. UuidCreateSequential was introduced to allow creation of UUIDs using the MAC address of a machine's Ethernet card.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Eddie Velasquez
Software Developer (Senior)
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralAddition To Programs.... Pin
Bishopds16-Jul-05 12:46
sussBishopds16-Jul-05 12:46 
GeneralRe: Addition To Programs.... Pin
smithsan16-Dec-08 17:04
membersmithsan16-Dec-08 17:04 
GeneralVery nice !! Pin
WREY9-Jan-05 7:09
memberWREY9-Jan-05 7:09 
GeneralRe: Very nice !! Pin
Eddie Velasquez9-Jan-05 9:57
memberEddie Velasquez9-Jan-05 9:57 
GeneralA little improvement Pin
Jorge Ramos8-May-04 22:34
memberJorge Ramos8-May-04 22:34 
GeneralRe: A little improvement Pin
Eddie Velasquez9-May-04 2:38
memberEddie Velasquez9-May-04 2:38 
GeneralDLL cannot be loaded Pin
pel-nn12-Feb-04 5:25
memberpel-nn12-Feb-04 5:25 
GeneralRe: DLL cannot be loaded Pin
Eddie Velasquez12-Feb-04 8:37
memberEddie Velasquez12-Feb-04 8:37 
GeneralWindows CE Platform Builder 4.2 port Pin
joelw15-Jan-04 21:25
memberjoelw15-Jan-04 21:25 
Generalwell improve ur way Pin
shaiza ashrf18-Dec-03 19:56
sussshaiza ashrf18-Dec-03 19:56 
GeneralRe: well improve ur way Pin
Eddie Velasquez19-Dec-03 0:42
memberEddie Velasquez19-Dec-03 0:42 
GeneralRe: well improve ur way Pin
Magadass6-Apr-04 15:40
memberMagadass6-Apr-04 15:40 
GeneralExcellent! Pin
AAntix23-Nov-03 22:17
memberAAntix23-Nov-03 22:17 
GeneralRe: Excellent! Pin
Eddie Velasquez24-Nov-03 3:58
memberEddie Velasquez24-Nov-03 3:58 
GeneralUnable to load DLL Pin
Bob Eastman15-Aug-02 8:42
memberBob Eastman15-Aug-02 8:42 
GeneralRe: Unable to load DLL Pin
Eddie Velasquez15-Aug-02 9:11
memberEddie Velasquez15-Aug-02 9:11 
GeneralRe: Unable to load DLL Pin
Bob Eastman15-Aug-02 9:44
memberBob Eastman15-Aug-02 9:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160525.2 | Last Updated 27 Dec 2001
Article Copyright 2000 by Eddie Velasquez
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid