Click here to Skip to main content
15,887,214 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Need C++ developers for MapWindow Summer of Code 2012 Pin
Richard MacCutchan25-Jul-12 4:35
mveRichard MacCutchan25-Jul-12 4:35 
GeneralRe: Need C++ developers for MapWindow Summer of Code 2012 Pin
Paul Meems25-Jul-12 4:43
Paul Meems25-Jul-12 4:43 
GeneralRe: Need C++ developers for MapWindow Summer of Code 2012 Pin
Richard MacCutchan25-Jul-12 5:13
mveRichard MacCutchan25-Jul-12 5:13 
QuestionC++/MFC solution Convert string to integer only such that if it is alphanumeric or float it should show as invalid values. Pin
Abinash Mohanty17-Jul-12 18:11
Abinash Mohanty17-Jul-12 18:11 
AnswerRe: C++/MFC solution Convert string to integer only such that if it is alphanumeric or float it should show as invalid values. Pin
Richard MacCutchan17-Jul-12 21:43
mveRichard MacCutchan17-Jul-12 21:43 
AnswerRe: C++/MFC solution Convert string to integer only such that if it is alphanumeric or float it should show as invalid values. Pin
evaj0318-Jul-12 2:40
evaj0318-Jul-12 2:40 
GeneralRe: C++/MFC solution Convert string to integer only such that if it is alphanumeric or float it should show as invalid values. Pin
Richard MacCutchan18-Jul-12 3:14
mveRichard MacCutchan18-Jul-12 3:14 
AnswerRe: C++/MFC solution Convert string to integer only such that if it is alphanumeric or float it should show as invalid values. Pin
SoMad18-Jul-12 10:47
professionalSoMad18-Jul-12 10:47 
You could simply use atoi() to convert to an integer, then format that value to a string and compare to your original string.

Since you are not asking for anything super efficient or elegant, this should do the trick.
C++
CString	str = "10.88";

int nValue = atoi(str);

CString strValue;
strValue.Format("%d", nValue);
if (strValue != str)
{
    nValue = 0;
}


Soren Madsen
AnswerRe: C++/MFC solution Convert string to integer only such that if it is alphanumeric or float it should show as invalid values. Pin
Shivanand Gupta21-Aug-12 23:40
Shivanand Gupta21-Aug-12 23:40 
QuestionVisual Studio 10 Linker Pin
BarryPearlman15-Jul-12 14:52
BarryPearlman15-Jul-12 14:52 
AnswerRe: Visual Studio 10 Linker Pin
Richard MacCutchan15-Jul-12 22:13
mveRichard MacCutchan15-Jul-12 22:13 
QuestionHow to unload a memory-resident system dll from memory? Pin
creative2628-Jun-12 10:50
creative2628-Jun-12 10:50 
AnswerRe: How to unload a memory-resident system dll from memory? Pin
Richard MacCutchan28-Jun-12 22:26
mveRichard MacCutchan28-Jun-12 22:26 
QuestionHELP BUTTON Pin
Smart Zulu22-Jun-12 1:15
Smart Zulu22-Jun-12 1:15 
QuestionUnable to drop a file on a new message in outlook 2007 Pin
sisrahul19-Jun-12 2:57
sisrahul19-Jun-12 2:57 
GeneralBug in ATL/MFC 8.0 CString Pin
XmlSeeker14-Jun-12 18:58
XmlSeeker14-Jun-12 18:58 
GeneralRe: Bug in ATL/MFC 8.0 CString Pin
Richard MacCutchan14-Jun-12 21:48
mveRichard MacCutchan14-Jun-12 21:48 
QuestionATL - Raise Event to all clients and acces to same variable Pin
ljubek7414-Jun-12 7:08
ljubek7414-Jun-12 7:08 
AnswerRe: ATL - Raise Event to all clients and acces to same variable Pin
barneyman17-Jun-12 14:51
barneyman17-Jun-12 14:51 
GeneralRe: ATL - Raise Event to all clients and acces to same variable Pin
ljubek7418-Jun-12 2:02
ljubek7418-Jun-12 2:02 
QuestionMFC exe to ATL service Pin
es196812-Jun-12 3:39
es196812-Jun-12 3:39 
AnswerRe: MFC exe to ATL service Pin
barneyman13-Jun-12 18:02
barneyman13-Jun-12 18:02 
QuestionAPI Decision Pin
Collin Biedenkapp11-Jun-12 18:53
Collin Biedenkapp11-Jun-12 18:53 
AnswerRe: API Decision Pin
Richard MacCutchan11-Jun-12 22:01
mveRichard MacCutchan11-Jun-12 22:01 
Questionhow to use an interface as a parameter in other atl objects? Pin
astupidboy31-May-12 20:41
astupidboy31-May-12 20:41 

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.