Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: .DSP information Pin
Neville Franks17-Sep-04 0:27
Neville Franks17-Sep-04 0:27 
GeneralRe: .DSP information Pin
Chris Richardson18-Sep-04 21:46
Chris Richardson18-Sep-04 21:46 
GeneralRe: .DSP information Pin
JensB19-Sep-04 21:58
JensB19-Sep-04 21:58 
GeneralGDI resource leak with MFC apps on XP SP2 Pin
Rob Caldecott16-Sep-04 23:39
Rob Caldecott16-Sep-04 23:39 
GeneralRe: GDI resource leak with MFC apps on XP SP2 Pin
Neville Franks17-Sep-04 0:12
Neville Franks17-Sep-04 0:12 
GeneralRe: GDI resource leak with MFC apps on XP SP2 Pin
Rob Caldecott17-Sep-04 0:13
Rob Caldecott17-Sep-04 0:13 
GeneralRe: GDI resource leak with MFC apps on XP SP2 Pin
Gary R. Wheeler19-Sep-04 15:38
Gary R. Wheeler19-Sep-04 15:38 
GeneralRandom numbers Pin
Cedric Moonen16-Sep-04 22:46
Cedric Moonen16-Sep-04 22:46 
Hello !
I would like to produce random numbers between 0 and 15. I tried to use srand and rand. So I used a similar code:

#define RAND_MAX  15     //Outside of the function<br />
srand(1);<br />
int Random = rand();<br />


But the numbers are greater than 15 Confused | :confused:

How can I do that ?
Thanks
GeneralRe: Random numbers Pin
Mike Beckerleg16-Sep-04 22:59
Mike Beckerleg16-Sep-04 22:59 
GeneralRe: Random numbers Pin
Cedric Moonen16-Sep-04 23:02
Cedric Moonen16-Sep-04 23:02 
GeneralRe: Random numbers Pin
Martijn van Kleef16-Sep-04 23:58
Martijn van Kleef16-Sep-04 23:58 
GeneralRe: Random numbers Pin
David Crow17-Sep-04 9:35
David Crow17-Sep-04 9:35 
QuestionHyperlink(Button)List ?? Pin
Hardy_Smith16-Sep-04 22:20
Hardy_Smith16-Sep-04 22:20 
Generala tyro's question Pin
pcbirdwang16-Sep-04 22:08
pcbirdwang16-Sep-04 22:08 
GeneralUsing SetTimer Pin
GDavy16-Sep-04 21:06
GDavy16-Sep-04 21:06 
GeneralRe: Using SetTimer Pin
Mike Beckerleg17-Sep-04 1:28
Mike Beckerleg17-Sep-04 1:28 
GeneralRe: Using SetTimer Pin
David Crow17-Sep-04 9:37
David Crow17-Sep-04 9:37 
GeneralSuspendThread &amp; TerminateThread Pin
Martijn van Kleef16-Sep-04 21:02
Martijn van Kleef16-Sep-04 21:02 
GeneralRe: SuspendThread &amp; TerminateThread Pin
Neville Franks17-Sep-04 0:36
Neville Franks17-Sep-04 0:36 
GeneralCListCtrl-Multi-selection using SHIFT &amp; arrow Key Pin
krishnakumar7516-Sep-04 20:49
krishnakumar7516-Sep-04 20:49 
GeneralRe: CListCtrl-Multi-selection using SHIFT &amp; arrow Key Pin
Chris Richardson18-Sep-04 21:55
Chris Richardson18-Sep-04 21:55 
GeneralRe: CListCtrl-Multi-selection using SHIFT &amp; arrow Key Pin
krishnakumar7520-Sep-04 18:05
krishnakumar7520-Sep-04 18:05 
QuestionError in ATL ( COM) DLL ??? Pin
zahid_ash16-Sep-04 20:03
zahid_ash16-Sep-04 20:03 
GeneralVisual C++ (MFC) : Using Matrix to set an part of an image to zero Pin
pohcb_sonic16-Sep-04 16:07
pohcb_sonic16-Sep-04 16:07 
Generalmsflexigrid Pin
persian_boi16-Sep-04 15:59
persian_boi16-Sep-04 15: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.