GUID Generator - Developer Studio Addin | CodeGuru

GUID Generator – Developer Studio Addin

Environment: VC6 SP3, NT4 SP5 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 […]

Written By
CodeGuru Staff
CodeGuru Staff
Mar 2, 2000
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Environment: VC6 SP3, NT4 SP5

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.

Advertisement

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
  3. // {DEF47E6-E23A-11D3-B4D0-8208CCE0C829}
    DEFINE_GUID(<< name >>,
    0xDEF47E6, 0xE23A, 0x11D3, 0xB4,
    0xD0, 0x82, 0x08, 0xCC, 0xE0, 0xC8, 0x29);
        

  4. Creating a static GUID
  5. // {DEF47E8-E23A-11D3-B4D0-8208CCE0C829}
    static const GUID << name >> =
    { 0xDEF47E8, 0xE23A, 0x11D3,
    { 0xB4, 0xD0, 0x82, 0x08, 0xCC, 0xE0, 0xC8, 0x29 } };
        

  6. Using the standard registry format
  7. {DEF47EA-E23A-11D3-B4D0-8208CCE0C829}
        

  8. Using a “plain”, undecorated format
  9. DEF47EC-E23A-11D3-B4D0-8208CCE0C829
        

  10. Using the uuid() format
  11. __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.

Downloads

Download executable – 17 Kb
Download source – 17 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.