Click here to Skip to main content
Licence 
First Posted 28 Feb 2002
Views 79,560
Bookmarked 21 times

GUIDGen AddIn for Visual Studio.NET

By | 20 May 2004 | Article
An Add-In that replaces and extends the GUID Generator component included with Visual Studio.NET

Version 2.1 What's New?

Description

GUIDGen.NET is an addin that replaces and extends the GUID Generator component included with Visual Studio.NET.

  • All the formats provided by the standard component are supported, plus two other commonly-used formats.
  • The ability to directly insert the results in the IDE's text editor without having to paste from the clipboard.
  • Insert new GUIDs using the current settings without showing the UI.
  • Optionally include an unformatted GUID as a comment before the main formatted one.
  • Optionally 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.
  • Create GUIDs using lowercase or uppercase characters.
  • Run in standalone mode using RUNDLL32. Just create a shortcut to rundll32.exe <path>\GuidGenNet.dll,ShowDialog
  • Use the addin in macros using two named commands: GGShowDialog and GGInsertGUID. The first command displays the UI and the second one directly inserts a GUID in the text editor using the current settings.
  • Default keybindings: GGShowDialog(alt+g,alt+d) and GGInsertGUID(alt+g,alt+i)

Installation

Just double-click on the GuidGenNetSetup.msi file.

Usage

To use the GUIDGen addin, 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.

Updates

Version 2.1 (05/18/04)

  • Added support for Visual Studio 2003
  • Now the GUIDs can be created in using uppercase or lowercase.
  • Administrative installs are now supported.

Version 2.0 (03/01/02)

  • Initial release

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

About the Author

Eddie Velasquez

Software Developer (Senior)

United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalplz support VS2005 Pinmembernitstheone20:15 10 Nov '06  
AnswerRe: plz support VS2005 PinmemberEddie Velasquez6:52 17 Nov '06  
GeneralRe: plz support VS2005 PinmemberThomas Helzle0:24 15 Sep '07  
QuestionAny plans to support VC++ 2005? PinmemberThomas Helzle2:51 17 Mar '06  
GeneralStartup failure PinmemberSid Price9:22 22 Jun '04  
GeneralVS.NET 2003 PinmemberDaij-Djan1:11 14 Sep '03  
GeneralRe: VS.NET 2003 PinmemberHachiihcaH9:51 15 Oct '03  
GeneralRe: VS.NET 2003 PinmemberHachiihcaH10:03 15 Oct '03  
GeneralRe: VS.NET 2003 PinmemberHachiihcaH10:06 15 Oct '03  
GeneralRe: VS.NET 2003 PinmemberTillerstarr11:01 25 Nov '03  
GeneralRe: VS.NET 2003 PinmemberFull Meat7:58 9 Dec '03  
GeneralGreat idea, but... PinmemberTom Archer12:15 1 Mar '02  
GeneralRe: Great idea, but... PinmemberEddie Velasquez14:03 1 Mar '02  
GeneralRe: Great idea, but... PinmemberTom Archer14:11 1 Mar '02  
GeneralRe: Great idea, but... PinmemberRama Krishna14:35 1 Mar '02  
In that case I would also like you to proof read my windows forms internals article, that would bring you one step closer to becoming official codeproject proof reader. -Smile | :)
GeneralRe: Great idea, but... PinmemberEddie Velasquez15:35 1 Mar '02  

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

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120529.1 | Last Updated 21 May 2004
Article Copyright 2002 by Eddie Velasquez
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid