The Code Project Click here for Dundas Software's TCP/IP Development Kit
Home >> Macros and Add-ins >> DevStudio Add-ins

GUIDGen Developer Studio AddIn
By Eddie Velasquez

An Add-In that replaces and extends the GUID Generator component included with Developer Studio 
 VC++ 6.0, NT 4.0, Win95/98, MFC
 Posted 18 Feb 2000
Articles by this author
Send to a friend
Printer friendly version
Home Lounge Latest Articles Logon Forums Contribute
Broken links? Email us!
10 users have rated this article. result:
4.9 out of 5.

  • Download add-in - 17 Kb
  • Download source files - 17.5 Kb
  • 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 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 X\SharedIDE\AddIn directory, where X is your DevStudio directory. Restart DevStudio and the add-in will automatically be added. Goto 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

    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.

    [Top] Rate this Article for us!     PoorExcellent  
    Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Use DHTML' from the View dropdown and hit 'Refresh'.
     Keyword Filter
     View   Per page   Messages since
    New threadMessages 1 to 5 of 5 (Total: 5)First | Prev | Next | Last
    Subject 
    Author 
    Date 
      how about an IDL format?
    Mark M. Baker 13:03 10 Feb 01 
      Auto-suggestion
    Eddie Velasquez 18:52 19 Feb 00 
      suggestion
    Simon Capewell 14:29 19 Feb 00 
      Re: suggestion
    Eddie Velasquez 18:50 19 Feb 00 
      Re: suggestion
    Carlos Taylor 16:26 17 Mar 00 
    Last Visit: 12:00 Friday 1st January, 1999First | Prev | Next | Last

    Home >> Macros and Add-ins >> DevStudio Add-ins
    last updated 18 Feb 2000
    Article content copyright Eddie Velasquez, 2000
    everthing else © CodeProject, 1999-2001.
    The Code Project Click here for Dundas Software - 3D accelerated presentation quality ASP charting