Click here to Skip to main content
15,907,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to create a Unique numeric ID Pin
SWDevil18-Dec-07 2:17
SWDevil18-Dec-07 2:17 
GeneralRe: How to create a Unique numeric ID Pin
SWDevil18-Dec-07 2:23
SWDevil18-Dec-07 2:23 
GeneralRe: How to create a Unique numeric ID Pin
CPallini18-Dec-07 2:33
mveCPallini18-Dec-07 2:33 
GeneralRe: How to create a Unique numeric ID Pin
SWDevil18-Dec-07 2:42
SWDevil18-Dec-07 2:42 
AnswerRe: How to create a Unique numeric ID Pin
CPallini18-Dec-07 2:45
mveCPallini18-Dec-07 2:45 
AnswerRe: How to create a Unique numeric ID Pin
jhwurmbach18-Dec-07 4:42
jhwurmbach18-Dec-07 4:42 
GeneralRe: How to create a Unique numeric ID Pin
SWDevil18-Dec-07 6:05
SWDevil18-Dec-07 6:05 
GeneralRe: How to create a Unique numeric ID Pin
jhwurmbach18-Dec-07 6:22
jhwurmbach18-Dec-07 6:22 
SWDevil wrote:
...GetTickCount...might return a negative value?


No. It returns a DWORD, that is unsigned.
It wraps around after 49,7 days, though.
Win95 used to crash after that uptime. Not that it was generally able to stay up that long without crash anyway.

time64 returns the seconds since UTC. It wraps around somtimes in the year 3000
If you really need, you could mix in the milliseconds since startup (GetTickCount)

time64 relies on the computers clock being set - tampering with the clock *could* make your UID non-unique. That may or may not be a problem.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
Douglas Adams, "Dirk Gently's Holistic Detective Agency"

General_CRT_SECURE_NO_WARNINGS Pin
Anthony Appleyard18-Dec-07 0:26
Anthony Appleyard18-Dec-07 0:26 
GeneralRe: _CRT_SECURE_NO_WARNINGS Pin
CPallini18-Dec-07 0:40
mveCPallini18-Dec-07 0:40 
GeneralRe: _CRT_SECURE_NO_WARNINGS Pin
Maxwell Chen18-Dec-07 1:20
Maxwell Chen18-Dec-07 1:20 
GeneralRe: _CRT_SECURE_NO_WARNINGS Pin
Mark Salsbery18-Dec-07 6:29
Mark Salsbery18-Dec-07 6:29 
GeneralDatabase timeout!!! Pin
__yash__18-Dec-07 0:17
professional__yash__18-Dec-07 0:17 
JokeRe: Database timeout!!! Pin
Nelek18-Dec-07 2:04
protectorNelek18-Dec-07 2:04 
GeneralRe: Database timeout!!! Pin
David Crow18-Dec-07 3:00
David Crow18-Dec-07 3:00 
GeneralRe: Database timeout!!! Pin
__yash__18-Dec-07 17:41
professional__yash__18-Dec-07 17:41 
GeneralHandling files larger than 4GB Pin
William Engberts17-Dec-07 23:05
William Engberts17-Dec-07 23:05 
GeneralRe: Handling files larger than 4GB Pin
Naveen17-Dec-07 23:10
Naveen17-Dec-07 23:10 
GeneralRe: Handling files larger than 4GB Pin
RChin17-Dec-07 23:17
RChin17-Dec-07 23:17 
GeneralRe: Handling files larger than 4GB Pin
eraccn18-Dec-07 1:25
eraccn18-Dec-07 1:25 
General[Message Deleted] Pin
adiveppanavar17-Dec-07 22:02
adiveppanavar17-Dec-07 22:02 
GeneralRe: regarding PostMessage and Rendering Pin
RChin17-Dec-07 23:20
RChin17-Dec-07 23:20 
General[Message Deleted] Pin
adiveppanavar17-Dec-07 23:38
adiveppanavar17-Dec-07 23:38 
GeneralRe: regarding PostMessage and Rendering Pin
toxcct18-Dec-07 2:07
toxcct18-Dec-07 2:07 
GeneralRe: regarding PostMessage and Rendering Pin
Iain Clarke, Warrior Programmer18-Dec-07 23:59
Iain Clarke, Warrior Programmer18-Dec-07 23:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.