Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: code to walk down all a program's windows Pin
Hamid_RT13-Nov-07 18:45
Hamid_RT13-Nov-07 18:45 
AnswerRe: code to walk down all a program's windows Pin
Lowell Boggs14-Nov-07 5:07
Lowell Boggs14-Nov-07 5:07 
GeneralRe: code to walk down all a program's windows Pin
Peter Weyzen14-Nov-07 18:21
Peter Weyzen14-Nov-07 18:21 
QuestionFOPEN Redirection Pin
User 42081113-Nov-07 10:20
User 42081113-Nov-07 10:20 
AnswerRe: FOPEN Redirection Pin
Chris Meech13-Nov-07 11:15
Chris Meech13-Nov-07 11:15 
GeneralRe: FOPEN Redirection Pin
User 42081113-Nov-07 12:00
User 42081113-Nov-07 12:00 
AnswerRe: FOPEN Redirection Pin
Bram van Kampen13-Nov-07 13:22
Bram van Kampen13-Nov-07 13:22 
AnswerRe: FOPEN Redirection [modified] Pin
Jude Deng13-Nov-07 15:25
Jude Deng13-Nov-07 15:25 
GeneralRe: FOPEN Redirection Pin
User 42081114-Nov-07 3:53
User 42081114-Nov-07 3:53 
GeneralRe: FOPEN Redirection Pin
Jude Deng2-Feb-08 14:43
Jude Deng2-Feb-08 14:43 
Questiona little help with an idea ?[modified] Pin
steve2028613-Nov-07 9:10
steve2028613-Nov-07 9:10 
AnswerRe: a little help? with an idea Pin
Maximilien13-Nov-07 9:36
Maximilien13-Nov-07 9:36 
GeneralRe: a little help? with an idea [modified] Pin
steve2028614-Nov-07 8:14
steve2028614-Nov-07 8:14 
QuestionPseudoRandom functions in C++ Pin
bigdenny20013-Nov-07 7:32
bigdenny20013-Nov-07 7:32 
AnswerRe: PseudoRandom functions in C++ Pin
jhwurmbach13-Nov-07 7:54
jhwurmbach13-Nov-07 7:54 
AnswerRe: PseudoRandom functions in C++ Pin
Nathan Addy13-Nov-07 8:39
Nathan Addy13-Nov-07 8:39 
GeneralRe: PseudoRandom functions in C++ Pin
bigdenny20013-Nov-07 8:59
bigdenny20013-Nov-07 8:59 
GeneralRe: PseudoRandom functions in C++ Pin
Nelek13-Nov-07 22:28
protectorNelek13-Nov-07 22:28 
AnswerRe: PseudoRandom functions in C++ Pin
cp987613-Nov-07 10:05
cp987613-Nov-07 10:05 
Your terminology is confusing, random is a property of a sequence not a function, so pseudo-random generators produce a pseudo-random stream of values, you can initialise this from a seed. It sounds that you are looking for a one-way or trapdoor function, where given x, the value f(x) appears random and difficult to invert to produce x. You could look at the standard hash functions (e.g. MD5), or alternatively something simple like exponentiation modulo some prime e.g.

f(x) = r^x (mod p) where r is a primitive root mod p.



Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

QuestionProblem during running multiple instance of an MFC application Pin
Chirag_kalra13-Nov-07 7:30
Chirag_kalra13-Nov-07 7:30 
AnswerRe: Problem during running multiple instance of an MFC application Pin
Bram van Kampen13-Nov-07 13:41
Bram van Kampen13-Nov-07 13:41 
AnswerRe: Problem during running multiple instance of an MFC application Pin
Nelek13-Nov-07 22:21
protectorNelek13-Nov-07 22:21 
AnswerRe: Problem during running multiple instance of an MFC application Pin
Priyank Bolia25-May-08 21:39
Priyank Bolia25-May-08 21:39 
Questionidispatch concepts not understood Pin
prithaa13-Nov-07 7:05
prithaa13-Nov-07 7:05 
AnswerRe: idispatch concepts not understood Pin
led mike13-Nov-07 7:12
led mike13-Nov-07 7:12 

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.