Active Forums => Programs => Topic started by: SpriggsySpriggs on June 29, 2020, 12:44:28 pm
Title: GUIDs in QB64
Post by: SpriggsySpriggs on June 29, 2020, 12:44:28 pm
Hello, all. This may or may not be wanted/needed by anyone but here is a small function that will allow you to have a super unique string (GUID) for your programs. It's been touted as "you might have a duplicate in 30 trillion". It generates a new GUID each time you call the function. Use it as you see fit.
Title: Re: GUIDs in QB64
Post by: SpriggsySpriggs on June 29, 2020, 12:57:58 pm
I realize this is slow so I'm going to also make a version using a C++ library. Hang tight!
Title: Re: GUIDs in QB64
Post by: SpriggsySpriggs on June 29, 2020, 02:25:46 pm
Bwahaha! I told you I would do it! Here you go, dudes. This will create you a GUID (or UUID, same difference) every time you call it and it will be sequential for the program's execution. Enjoy! P.S., Works in both 32 and 64 bit!