why not use a sscanf ?
this always returns 0 if it cannot convert the given value to what you told.
for example:
CString MyString = "1.0";
double dummy;
if (sscanf(MyString.GetBuffer(1), "%d", &dummy) == 0) {
return -1;
} else {
return 0;
}
or use sscanf directly
Hi all
I hope it's not to easy, but I like to get the document properties (author, title and so on) for a file anywhere in the windows filesystem. Naturally I know the exact path, but I just don't find a function to retrieve those attributes with pure VC++ (no COM please).
Any help is greatly...
Hello all !
I have a problem with the keyboard-messages in a modeless dialog. Unfortunately this dialog is in dll. I've tried to intercept the PreTranslateMessage through my whole hierarchie but I get nothing, no message is send at all to any of my dialogs. I could strike nearly any key but...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.