Click here to Skip to main content
15,881,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLinking new dialog’s textbox w/ old dialog Pin
Spank me!!22-Dec-03 9:37
Spank me!!22-Dec-03 9:37 
GeneralRe: Linking new dialog’s textbox w/ old dialog Pin
David Crow22-Dec-03 11:12
David Crow22-Dec-03 11:12 
Generallink error: msvcirt.dll Pin
Vincent Sim22-Dec-03 9:33
Vincent Sim22-Dec-03 9:33 
GeneralRe: link error: msvcirt.dll Pin
David Crow22-Dec-03 11:14
David Crow22-Dec-03 11:14 
GeneralTrouble Compiling Help Files Pin
Anonymous22-Dec-03 9:05
Anonymous22-Dec-03 9:05 
GeneralRe: Trouble Compiling Help Files Pin
Roger Allen23-Dec-03 2:54
Roger Allen23-Dec-03 2:54 
Generalstring check Pin
act_x22-Dec-03 8:05
act_x22-Dec-03 8:05 
GeneralRe: string check Pin
PJ Arends22-Dec-03 9:21
professionalPJ Arends22-Dec-03 9:21 
you could use strtol() to convert the string to an integer, and then make sure the endptr actually points to the end of the string.

bool IsNumber(std::string str, int base)
{
    char *EndPtr = NULL;
    const char *Number = str.c_str();
    strtol(Number, &EndPtr, base);
    return (EndPtr != Number && *EndPtr == NULL);
}








Sonork 100.11743 Chicken Little

"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

Within you lies the power for good - Use it!
GeneralRe: string check Pin
act_x22-Dec-03 9:47
act_x22-Dec-03 9:47 
GeneralRe: string check Pin
PJ Arends22-Dec-03 9:54
professionalPJ Arends22-Dec-03 9:54 
GeneralRe: string check Pin
act_x22-Dec-03 10:13
act_x22-Dec-03 10:13 
GeneralRe: string check Pin
nde_plume22-Dec-03 11:03
nde_plume22-Dec-03 11:03 
GeneralRe: string check Pin
PJ Arends22-Dec-03 11:42
professionalPJ Arends22-Dec-03 11:42 
GeneralRe: string check Pin
nde_plume22-Dec-03 12:24
nde_plume22-Dec-03 12:24 
GeneralPacket Filtering Pin
RedDragon2k22-Dec-03 8:01
RedDragon2k22-Dec-03 8:01 
GeneralRe: Packet Filtering Pin
User 665822-Dec-03 8:33
User 665822-Dec-03 8:33 
GeneralRe: Packet Filtering Pin
RedDragon2k22-Dec-03 8:35
RedDragon2k22-Dec-03 8:35 
QuestionHow to close a file opened by the user in MFC? Pin
Binayak22-Dec-03 7:24
Binayak22-Dec-03 7:24 
AnswerRe: How to close a file opened by the user in MFC? Pin
Antti Keskinen22-Dec-03 9:01
Antti Keskinen22-Dec-03 9:01 
Generalproblems with vc98\include Pin
aidanh22-Dec-03 6:24
aidanh22-Dec-03 6:24 
GeneralRe: problems with vc98\include Pin
Selvam R23-Dec-03 9:54
professionalSelvam R23-Dec-03 9:54 
GeneralIgnoring directive Pin
JensB22-Dec-03 4:55
JensB22-Dec-03 4:55 
GeneralRe: Ignoring directive Pin
David Crow22-Dec-03 11:20
David Crow22-Dec-03 11:20 
GeneralRe: Ignoring directive Pin
Robert Kuster22-Dec-03 12:14
Robert Kuster22-Dec-03 12:14 
GeneralWinpCap can not report the TCP packet, help me plea! Pin
Huabing Yan22-Dec-03 4:49
Huabing Yan22-Dec-03 4:49 

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.