Click here to Skip to main content
15,905,229 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVersion number Pin
Anonymous26-Jun-03 5:35
Anonymous26-Jun-03 5:35 
GeneralRe: Version number Pin
basementman26-Jun-03 6:33
basementman26-Jun-03 6:33 
GeneralI need AIR & I'm pulling my hair out over Random doubles within a specified range Pin
johnstonsk26-Jun-03 5:21
johnstonsk26-Jun-03 5:21 
GeneralRe: I need AIR & I'm pulling my hair out over Random doubles within a specified range Pin
Ryan Binns26-Jun-03 5:29
Ryan Binns26-Jun-03 5:29 
GeneralRe: I need AIR & I'm pulling my hair out over Random doubles within a specified range Pin
johnstonsk26-Jun-03 5:42
johnstonsk26-Jun-03 5:42 
GeneralRe: I need AIR & I'm pulling my hair out over Random doubles within a specified range Pin
Ian Darling26-Jun-03 6:22
Ian Darling26-Jun-03 6:22 
GeneralRe: I need AIR & I'm pulling my hair out over Random doubles within a specified range Pin
David Crow26-Jun-03 7:20
David Crow26-Jun-03 7:20 
GeneralRe: I need AIR & I'm pulling my hair out over Random doubles within a specified range Pin
Ryan Binns26-Jun-03 14:55
Ryan Binns26-Jun-03 14:55 
Hmmm. That worked perfectly for me. This is the entire program I used to test it:
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int __stdcall WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow)
{
   srand((unsigned)time(NULL));
   double max = 100.0f;
   double min = 0.0f;
   for(int i=0; i<20; i++)
   {
      char buf[128];
      sprintf(buf, "%lf", ((double)rand() / RAND_MAX) * (max - min) + min);
      MessageBox(NULL, buf, "test", MB_ICONINFORMATION | MB_OK);
   }
   return 0;
}


Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

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: I need AIR &amp; I'm pulling my hair out over Random doubles within a specified range Pin
johnstonsk27-Jun-03 3:56
johnstonsk27-Jun-03 3:56 
GeneralRe: I need AIR &amp; I'm pulling my hair out over Random doubles within a specified range Pin
Ryan Binns27-Jun-03 3:59
Ryan Binns27-Jun-03 3:59 
GeneralRe: I need AIR &amp; I'm pulling my hair out over Random doubles within a specified range Pin
Dominik Reichl26-Jun-03 7:50
Dominik Reichl26-Jun-03 7:50 
GeneralStandard Error and Warning Images Pin
Steve Thresher26-Jun-03 3:31
Steve Thresher26-Jun-03 3:31 
GeneralRe: Standard Error and Warning Images Pin
basementman26-Jun-03 3:54
basementman26-Jun-03 3:54 
GeneralRe: Standard Error and Warning Images Pin
Steve Thresher26-Jun-03 4:35
Steve Thresher26-Jun-03 4:35 
GeneralRe: Standard Error and Warning Images Pin
Ryan Binns26-Jun-03 5:19
Ryan Binns26-Jun-03 5:19 
Generalusing a vector with CComboBox::AddString() in MFC Pin
keegan26-Jun-03 2:52
keegan26-Jun-03 2:52 
GeneralRe: using a vector with CComboBox::AddString() in MFC Pin
Maximilien26-Jun-03 3:18
Maximilien26-Jun-03 3:18 
GeneralRe: using a vector with CComboBox::AddString() in MFC Pin
keegan26-Jun-03 3:27
keegan26-Jun-03 3:27 
GeneralRe: using a vector with CComboBox::AddString() in MFC Pin
Maximilien26-Jun-03 3:35
Maximilien26-Jun-03 3:35 
GeneralRe: using a vector with CComboBox::AddString() in MFC Pin
keegan26-Jun-03 3:48
keegan26-Jun-03 3:48 
GeneralRe: using a vector with CComboBox::AddString() in MFC Pin
Shay Harel26-Jun-03 7:57
Shay Harel26-Jun-03 7:57 
GeneralWizard sheet 97 Pin
Member 42425926-Jun-03 2:49
Member 42425926-Jun-03 2:49 
Generalmalloc, free problem ...... Pin
_crs_26-Jun-03 2:44
_crs_26-Jun-03 2:44 
GeneralRe: malloc, free problem ...... Pin
David Crow26-Jun-03 3:09
David Crow26-Jun-03 3:09 
GeneralRe: malloc, free problem ...... Pin
_crs_26-Jun-03 3:47
_crs_26-Jun-03 3:47 

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.