Next Previous Up Top Contents Index

2.5 Making GUIDs

2.5.1 Creating GUID numbers

To create the numbers that make up a GUID, you need to run a special utility. Functional Developer offers a utility called create-id for generating GUIDs. Owners of Microsoft Windows programming tools and development kits have a further choice with the utility UUIDGEN. (UUID is another name for GUID.) You can use whichever utility you like.

The create-id utility is a console-mode program that you run from an MS-DOS command prompt. You can find it in the Bin subfolder of your Functional Developer installation.

The create-id utility accepts a single argument, which is the number of GUIDs you wish generate. If you do not supply an argument, the default is to generate a single GUID. The script writes the generated GUIDs to the standard output in the form of string literals that you can paste into Dylan source code.

This is an example of using create-id to create four GUID numbers:

ms-dos> create-id 4
"{C16C1BFE-41DA-11D1-9A58-006097C90313}"
"{C16C1BFF-41DA-11D1-9A58-006097C90313}"
"{C16C1C00-41DA-11D1-9A58-006097C90313}"
"{C16C1C01-41DA-11D1-9A58-006097C90313}"
ms-dos>


OLE, COM, ActiveX and DBMS Reference - 31 MAR 2000

Next Previous Up Top Contents Index