DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: CoCreateGuid

  1. #1
    Darren Coolidge Guest

    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?

  2. #2
    Dan Appleman Guest

    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


  3. #3
    Mattias Sjögren Guest

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links