January 23rd, 2004, 03:39 PM
create a GUID using c++
I want to create a GUID in c++ and then write the value to a table using ADO and SQL Server. I understand that SQL Server supports GUIDs as a data type ...
I only know how to use uuidgen.exe or guidgen.exe to create GUIDs ... is there a way in c++ ???
January 23rd, 2004, 05:26 PM
Principal Engineer, Propel
Do not credit Propel with my views or opinions.
January 24th, 2004, 10:47 AM
Here is the code to round out the discussion ...
_TUCHAR *guidStr = 0x00;
GUID *pguid = 0x00;
pguid = new GUID;
// Convert the GUID to a string
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!