|
-
CoCreateGuid
CoCreateGuid creates nice guids but, when the same program still has the dll
loaded, VB, the guids it creates appear to be linear, no matter how much
time has gone by. How would you suggest we create non-linear guids?
-
Re: CoCreateGuid
"Darren Coolidge" <dcoolidge@afhcan.org> wrote:
>
>CoCreateGuid creates nice guids but, when the same program still has the
dll
>loaded, VB, the guids it creates appear to be linear, no matter how much
>time has gone by. How would you suggest we create non-linear guids?
All CoCreateGuid guarantees is that they be unique - not that they be non-linear.
Seems to me if you must be non-linear, it means you'll have to use a separate
DLL that you can
be sure it is loaded an unloaded. Sorry I don't have a better idea offhand.
Dan
-
Re: CoCreateGuid
>CoCreateGuid creates nice guids but, when the same program still has the dll
>loaded, VB, the guids it creates appear to be linear, no matter how much
>time has gone by. How would you suggest we create non-linear guids?
Darren,
Just FYI, the implementation of CoCreateGuid has changed in Windows
2000. It now generates non-linear series of GUIDs. They also aren't
based on the MAC address of your NIC anymore.
Mattias
__________________________________________________
Mattias Sjögren (MCP) - mattiass @ hem.passagen.se
VB+ http://hem.spray.se/mattias.sjogren/
Please send questions/replies to the newsgroups
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks