Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General1 day only! I will answer your beginner home-work assignments! Pin
Terry O'Nolley8-Oct-03 9:24
Terry O'Nolley8-Oct-03 9:24 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Ryan_Roberts8-Oct-03 9:58
Ryan_Roberts8-Oct-03 9:58 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Terry O'Nolley8-Oct-03 17:28
Terry O'Nolley8-Oct-03 17:28 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Anonymous8-Oct-03 11:01
Anonymous8-Oct-03 11:01 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Terry O'Nolley8-Oct-03 16:30
Terry O'Nolley8-Oct-03 16:30 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
David Stone8-Oct-03 19:08
sitebuilderDavid Stone8-Oct-03 19:08 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Mike Danberg8-Oct-03 17:09
Mike Danberg8-Oct-03 17:09 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
David Stone8-Oct-03 19:12
sitebuilderDavid Stone8-Oct-03 19:12 
You could look at the System::Text::RegularExpressions namespace and create a regular expression that would match the characters 0-9...then check to see if the thing is a match. You could also use the Microsoft::VisualBasic namespace Dead | X| and the IsNumeric() function.

Also, I think the Convert::ToDouble() throws an exception if the input string is not in a proper format. (Actually I know so, I just did this the other day in C#). You could wrap the call to ToDouble() in a try catch block and handle the error whichever way you want.

Hope that helps... Smile | :)


When I can talk about 64 bit processors and attract girls with my computer not my car, I'll come out of the closet. Until that time...I'm like "What's the ENTER key?"
-Hockey on being a geek

GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Chris Maunder8-Oct-03 16:47
cofounderChris Maunder8-Oct-03 16:47 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Terry O'Nolley8-Oct-03 17:25
Terry O'Nolley8-Oct-03 17:25 
GeneralRe: 1 day only! I will answer your beginner home-work assignments! Pin
Alex Dolpfin9-Oct-03 3:24
Alex Dolpfin9-Oct-03 3:24 
GeneralDetecting if UNC path is on local machine Pin
RWB8-Oct-03 9:08
RWB8-Oct-03 9:08 
GeneralRe: Detecting if UNC path is on local machine Pin
Joel Lucsy9-Oct-03 2:36
Joel Lucsy9-Oct-03 2:36 
GeneralSetting Crystal Reports parameter fields using automation Pin
pocovnicu8-Oct-03 8:40
pocovnicu8-Oct-03 8:40 
GeneralDialog to PropertyPage Pin
act_x8-Oct-03 8:36
act_x8-Oct-03 8:36 
GeneralRe: Dialog to PropertyPage Pin
Mike Danberg8-Oct-03 10:48
Mike Danberg8-Oct-03 10:48 
QuestionHow to load a File.rc with different name ?? Pin
Cris8-Oct-03 8:24
Cris8-Oct-03 8:24 
AnswerRe: How to load a File.rc with different name ?? Pin
David Crow8-Oct-03 8:40
David Crow8-Oct-03 8:40 
GeneralRe: How to load a File.rc with different name ?? Pin
Cris8-Oct-03 8:50
Cris8-Oct-03 8:50 
AnswerRe: How to load a File.rc with different name ?? Pin
Michael Dunn8-Oct-03 16:51
sitebuilderMichael Dunn8-Oct-03 16:51 
GeneralMessages and CSplitterWnd Pin
AnTri8-Oct-03 8:19
AnTri8-Oct-03 8:19 
GeneralRe: Messages and CSplitterWnd Pin
KaЯl9-Oct-03 3:19
KaЯl9-Oct-03 3:19 
GeneralNeed a little CFormView help Pin
Adam Gritt8-Oct-03 8:14
Adam Gritt8-Oct-03 8:14 
QuestionHow Browser handles Javascript events Pin
JDasari8-Oct-03 7:48
JDasari8-Oct-03 7:48 
Generaldeclare CRect Pin
swerajan8-Oct-03 7:37
swerajan8-Oct-03 7:37 

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.