Link to home
Start Free TrialLog in
Avatar of johnclarke
johnclarke

asked on

Automatically Generate a GUID

Is there any way to automatically generate a GUID programatically ? Ā If so how ?

I would be grateful for all advice offered.

Thanks in advance

John
Avatar of Epsylon
Epsylon

Use the CreateClassID function and add ComObj to the uses clause.
listening...
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of johnclarke

ASKER

Thanks for your help!

John
Huh? What's wrong with CreateClassID?
Hi

What is interesting here is that CoCreateGUID does not seem to work on Windows 2003 Server R2 whereas CreateClassID does.

Thought you might find this interesting.