Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: capCreateCaptureWindow - source code wanted Pin
Randor 29-Dec-08 8:52
professional Randor 29-Dec-08 8:52 
GeneralRe: capCreateCaptureWindow - source code wanted Pin
Vaclav_30-Dec-08 7:09
Vaclav_30-Dec-08 7:09 
QuestionHow to find an Access violation error(involving CStringT) in 3rd Party program Pin
Larry Mills Sr29-Dec-08 6:37
Larry Mills Sr29-Dec-08 6:37 
GeneralRe: How to find an Access violation error(involving CStringT) in 3rd Party program Pin
CPallini29-Dec-08 7:56
mveCPallini29-Dec-08 7:56 
GeneralRe: How to find an Access violation error(involving CStringT) in 3rd Party program Pin
Randor 29-Dec-08 9:02
professional Randor 29-Dec-08 9:02 
GeneralRe: How to find an Access violation error(involving CStringT) in 3rd Party program Pin
Larry Mills Sr29-Dec-08 11:35
Larry Mills Sr29-Dec-08 11:35 
QuestionRandom seeding in C++ different to Java? Pin
c#_keithy29-Dec-08 6:16
c#_keithy29-Dec-08 6:16 
GeneralRe: Random seeding in C++ different to Java? Pin
Luc Pattyn29-Dec-08 6:26
sitebuilderLuc Pattyn29-Dec-08 6:26 
Hi,

why would the built-in random function in Java behave the same as the built-in random function in
the one C++ implementation you have been using so far? There is an infinite number of random generators after all, so even starting from the same seed value, the sequence is unlikely to be the same. Have you ever compared random generators from different C++ systems?

If you need this to be identical, you have but two choices:
- call the original implementation, use Java Native Interface (JNI) to get it;
- copy the C++ implementation using your own Java code.

What I have done in the past is turn the random stuff into my own class, and in there choose between the built-in random generator (which is fast and good), and my own (which is portable, slower and
maybe good, and helps in comparing app results).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


QuestionRe: Random seeding in C++ different to Java? Pin
CPallini29-Dec-08 7:50
mveCPallini29-Dec-08 7:50 
AnswerRe: Random seeding in C++ different to Java? Pin
BobInNJ29-Dec-08 9:44
BobInNJ29-Dec-08 9:44 
GeneralRe: Random seeding in C++ different to Java? Pin
CPallini29-Dec-08 10:07
mveCPallini29-Dec-08 10:07 
GeneralRe: Random seeding in C++ different to Java? Pin
BobInNJ29-Dec-08 10:33
BobInNJ29-Dec-08 10:33 
GeneralRe: Random seeding in C++ different to Java? Pin
Luc Pattyn29-Dec-08 10:43
sitebuilderLuc Pattyn29-Dec-08 10:43 
QuestionWM_USER ignored by View window? (CHtmlView) Pin
nobaq29-Dec-08 1:43
nobaq29-Dec-08 1:43 
AnswerRe: WM_USER ignored by View window? (CHtmlView) Pin
Roger Stoltz29-Dec-08 2:24
Roger Stoltz29-Dec-08 2:24 
AnswerRe: WM_USER ignored by View window? (CHtmlView) Pin
KASR129-Dec-08 19:21
KASR129-Dec-08 19:21 
Questionbinary search tree Pin
foshia29-Dec-08 1:30
foshia29-Dec-08 1:30 
AnswerRe: binary search tree Pin
Maximilien29-Dec-08 3:02
Maximilien29-Dec-08 3:02 
QuestionIntelliSense:'No additional information available' in VC++2005. Pin
Le@rner29-Dec-08 1:17
Le@rner29-Dec-08 1:17 
AnswerRe: IntelliSense:'No additional information available' in VC++2005. Pin
Hamid_RT29-Dec-08 1:31
Hamid_RT29-Dec-08 1:31 
GeneralRe: IntelliSense:'No additional information available' in VC++2005. Pin
Le@rner29-Dec-08 1:54
Le@rner29-Dec-08 1:54 
AnswerRe: IntelliSense:'No additional information available' in VC++2005. Pin
Jijo.Raj29-Dec-08 3:08
Jijo.Raj29-Dec-08 3:08 
AnswerRe: IntelliSense:'No additional information available' in VC++2005. Pin
Randor 29-Dec-08 8:39
professional Randor 29-Dec-08 8:39 
Questionchange background color of dialog Pin
zhiyuan1629-Dec-08 0:59
zhiyuan1629-Dec-08 0:59 
AnswerRe: change background color of dialog Pin
Malli_S29-Dec-08 1:04
Malli_S29-Dec-08 1:04 

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.