Originally Posted by
MacGyver
You know what.... I wonder.....
Could you be using the _T macro all wrong, and those large digits are the address of a new string it's creating? Those addresses possibly point to your random numbers.
I believe you're right MacGyver...
Code:
srand(time(NULL));
_tcscpy(ProductID, _T("{%8X-%4X-%4X-%4X-%12X}\n", 12345678, rand(), rand(), rand(), rand()));
_tprintf(ProductID);
Output: {7DDC7E09-3459C061-1C7A77E-7FFDB000- CCCCCCCC}
What would be a better way to do this then?