Click here to Skip to main content
16,013,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondelay() function equivalent in VC++ 6.0 -- is there any? Pin
ur_unholyness20-Feb-05 2:42
ur_unholyness20-Feb-05 2:42 
AnswerRe: delay() function equivalent in VC++ 6.0 -- is there any? Pin
eli1502197920-Feb-05 3:57
eli1502197920-Feb-05 3:57 
GeneralDialog box on Toolbar Control Pin
jw8120-Feb-05 1:58
jw8120-Feb-05 1:58 
GeneralRandom Numbers Pin
Renjith Ramachandran19-Feb-05 20:38
Renjith Ramachandran19-Feb-05 20:38 
GeneralRe: Random Numbers Pin
Kevin McFarlane20-Feb-05 0:05
Kevin McFarlane20-Feb-05 0:05 
GeneralRe: Random Numbers Pin
Ryan Binns20-Feb-05 17:08
Ryan Binns20-Feb-05 17:08 
GeneralRe: Random Numbers Pin
Kevin McFarlane25-Feb-05 8:00
Kevin McFarlane25-Feb-05 8:00 
GeneralRe: Random Numbers Pin
Ryan Binns26-Feb-05 18:51
Ryan Binns26-Feb-05 18:51 
Kevin McFarlane wrote:
In fact I'd thought that eli15021979's % method was slicker!

It is Smile | :) And it will be good enough most of the time, but technically you can do better without having to change an awful lot Wink | ;) . In fact, if you use the method you originally posted, modifying it to work with floating-point numbers is relatively trivial - a lot easier than converting one using the modulo operator, since the modulo operator doesn't work for floating-point numbers, well not in C++ at least...

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: Random Numbers Pin
eli1502197920-Feb-05 0:14
eli1502197920-Feb-05 0:14 
GeneralRe: Random Numbers Pin
Renjith Ramachandran20-Feb-05 0:56
Renjith Ramachandran20-Feb-05 0:56 
GeneralRe: Random Numbers Pin
Kevin McFarlane20-Feb-05 4:39
Kevin McFarlane20-Feb-05 4:39 
GeneralRe: Random Numbers Pin
nadzzz20-Feb-05 7:22
nadzzz20-Feb-05 7:22 
GeneralRe: Random Numbers Pin
David Crow21-Feb-05 4:24
David Crow21-Feb-05 4:24 
GeneralCreate Dynamically Generated Arrays Pin
OutlawTornNMT19-Feb-05 16:50
OutlawTornNMT19-Feb-05 16:50 
GeneralRe: Create Dynamically Generated Arrays Pin
Maximilien20-Feb-05 3:38
Maximilien20-Feb-05 3:38 
GeneralRe: Create Dynamically Generated Arrays Pin
OutlawTornNMT20-Feb-05 14:42
OutlawTornNMT20-Feb-05 14:42 
GeneralRe: Create Dynamically Generated Arrays Pin
Ryan Binns20-Feb-05 17:10
Ryan Binns20-Feb-05 17:10 
GeneralRe: Create Dynamically Generated Arrays Pin
LighthouseJ20-Feb-05 8:01
LighthouseJ20-Feb-05 8:01 
GeneralCFtpConnection::GetFile Directory Issues Pin
JimmyGoon19-Feb-05 16:11
JimmyGoon19-Feb-05 16:11 
GeneralRe: CFtpConnection::GetFile Directory Issues Pin
JimmyGoon21-Feb-05 10:46
JimmyGoon21-Feb-05 10:46 
QuestionSIMPLE QUESTION!!! WHAT STUPID THING AM I DOING WRONG??? Pin
...---...19-Feb-05 11:46
...---...19-Feb-05 11:46 
AnswerRe: SIMPLE QUESTION!!! WHAT STUPID THING AM I DOING WRONG??? Pin
Michael Dunn19-Feb-05 11:56
sitebuilderMichael Dunn19-Feb-05 11:56 
GeneralRe: SIMPLE QUESTION!!! WHAT STUPID THING AM I DOING WRONG??? Pin
...---...19-Feb-05 12:13
...---...19-Feb-05 12:13 
AnswerRe: SIMPLE QUESTION!!! WHAT STUPID THING AM I DOING WRONG??? Pin
macrophobia19-Feb-05 17:50
macrophobia19-Feb-05 17:50 
AnswerYour solution Pin
David Nash22-Feb-05 21:25
David Nash22-Feb-05 21:25 

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.