CoCreateGuid


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?
    Share on Google+

  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

    Share on Google+

  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
    Share on Google+

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center