5,781,349 members and growing! (17,898 online)
Email Password   helpLost your password?
General Programming » Macros and Add-ins » Visual Studio .NET Addins     Intermediate

GUIDGen AddIn for Visual Studio.NET

By Eddie Velasquez

An Add-In that replaces and extends the GUID Generator component included with Visual Studio.NET
VC7, VC7.1, VC8.0, C++Windows, .NET, .NET 1.0, Win2K, WinXP, ATL, VS.NET2003, Visual Studio, Dev

Posted: 28 Feb 2002
Updated: 20 May 2004
Views: 62,800
Bookmarked: 19 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
19 votes for this Article.
Popularity: 5.34 Rating: 4.18 out of 5
1 vote, 9.1%
1
0 votes, 0.0%
2
1 vote, 9.1%
3
1 vote, 9.1%
4
8 votes, 72.7%
5

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



Occupation: Web Developer
Location: United States United States

Other popular Macros and Add-ins articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 16 of 16 (Total in Forum: 16) (Refresh)FirstPrevNext
Generalplz support VS2005membernitstheone21:15 10 Nov '06  
AnswerRe: plz support VS2005memberEddie Velasquez7:52 17 Nov '06  
GeneralRe: plz support VS2005memberThomas Helzle1:24 15 Sep '07  
QuestionAny plans to support VC++ 2005?memberThomas Helzle3:51 17 Mar '06  
GeneralStartup failurememberSid Price10:22 22 Jun '04  
GeneralVS.NET 2003memberDaij-Djan2:11 14 Sep '03  
GeneralRe: VS.NET 2003memberHachiihcaH10:51 15 Oct '03  
GeneralRe: VS.NET 2003memberHachiihcaH11:03 15 Oct '03  
GeneralRe: VS.NET 2003memberHachiihcaH11:06 15 Oct '03  
GeneralRe: VS.NET 2003memberTillerstarr12:01 25 Nov '03  
GeneralRe: VS.NET 2003memberFull Meat8:58 9 Dec '03  
GeneralGreat idea, but...memberTom Archer13:15 1 Mar '02  
GeneralRe: Great idea, but...memberEddie Velasquez15:03 1 Mar '02  
GeneralRe: Great idea, but...memberTom Archer15:11 1 Mar '02  
GeneralRe: Great idea, but...memberRama Krishna15:35 1 Mar '02  
GeneralRe: Great idea, but...memberEddie Velasquez16:35 1 Mar '02  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 20 May 2004
Editor: Nishant Sivakumar
Copyright 2002 by Eddie Velasquez
Everything else Copyright © CodeProject, 1999-2009
Web13 | Advertise on the Code Project