Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Big int Pin
David Crow26-Apr-06 8:24
David Crow26-Apr-06 8:24 
GeneralRe: Big int Pin
Ryan Binns26-Apr-06 14:04
Ryan Binns26-Apr-06 14:04 
AnswerRe: Big int Pin
David Crow26-Apr-06 8:13
David Crow26-Apr-06 8:13 
AnswerRe: Big int Pin
Joe Woodbury26-Apr-06 8:27
professionalJoe Woodbury26-Apr-06 8:27 
GeneralRe: Big int Pin
#hackC++26-Apr-06 8:32
#hackC++26-Apr-06 8:32 
GeneralRe: Big int Pin
Joe Woodbury26-Apr-06 8:39
professionalJoe Woodbury26-Apr-06 8:39 
GeneralRe: Big int Pin
Maximilien26-Apr-06 10:20
Maximilien26-Apr-06 10:20 
GeneralRe: Big int Pin
Rilhas29-Apr-06 14:22
Rilhas29-Apr-06 14:22 
If you need a large numeric password then the better way to do it is store it as a string a restrict its contents to characters from '0' to '9'. This password can be arbitrarily long if stored as a string.

You would only need it to be represented as an integer if you needed arithmetic or mathematical manipulations. Note that checking if the password is correct does not need mathematics, a simple strcmp() will do the trick.

Anyway, if you needed to represent as an integer that fits in 64 bits, then I would sugest _int64 instead of LARGE_INTEGER. The _int64 is a compiler feature, and LARGE_INTEGER is a Windows feature. I would always prefer the compiler feature, for the implementation to be as platform independent as possible. If you need manipulation as an integer and it it larger than 64 bits, then I would sugest you created a class for that.



Rilhas
AnswerRe: Big int Pin
Jörgen Sigvardsson26-Apr-06 12:12
Jörgen Sigvardsson26-Apr-06 12:12 
Questionan embarassing question about #include Pin
Waldermort26-Apr-06 7:46
Waldermort26-Apr-06 7:46 
AnswerRe: an embarassing question about #include Pin
Chris Losinger26-Apr-06 10:51
professionalChris Losinger26-Apr-06 10:51 
AnswerRe: an embarassing question about #include Pin
Wes Aday27-Apr-06 4:43
professionalWes Aday27-Apr-06 4:43 
AnswerRe: an embarassing question about #include Pin
Rilhas29-Apr-06 14:30
Rilhas29-Apr-06 14:30 
QuestionHow I can Get DLL Version Number from resource file Pin
jinzhecheng26-Apr-06 7:32
jinzhecheng26-Apr-06 7:32 
AnswerRe: How I can Get DLL Version Number from resource file Pin
Michael Dunn26-Apr-06 7:39
sitebuilderMichael Dunn26-Apr-06 7:39 
QuestionRe: How I can Get DLL Version Number from resource file Pin
David Crow26-Apr-06 7:44
David Crow26-Apr-06 7:44 
AnswerRe: How I can Get DLL Version Number from resource file Pin
jinzhecheng28-Apr-06 14:11
jinzhecheng28-Apr-06 14:11 
Question3D graphics Pin
Gagnon Claude26-Apr-06 7:24
Gagnon Claude26-Apr-06 7:24 
QuestionBest way to setup environment for modular development ? Pin
Defenestration26-Apr-06 7:14
Defenestration26-Apr-06 7:14 
AnswerRe: Best way to setup environment for modular development ? Pin
Blake Miller26-Apr-06 7:25
Blake Miller26-Apr-06 7:25 
AnswerRe: Best way to setup environment for modular development ? Pin
Rilhas29-Apr-06 15:06
Rilhas29-Apr-06 15:06 
QuestionHandling asynchronous I/O Pin
logicaldna26-Apr-06 6:24
logicaldna26-Apr-06 6:24 
QuestionCTreeCtrl selection problem Pin
RoyceF26-Apr-06 5:57
RoyceF26-Apr-06 5:57 
AnswerRe: CTreeCtrl selection problem Pin
includeh1026-Apr-06 6:16
includeh1026-Apr-06 6:16 
GeneralRe: CTreeCtrl selection problem Pin
RoyceF26-Apr-06 7:15
RoyceF26-Apr-06 7:15 

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.