#keywords ATL,C++,CComVariant,IsNumber,MFC {{{#!gcode CString str(_T("a")); CComVariant v = str; if (v.ChangeType(VT_R8) != S_OK) { // string is not number } }}} ---- {{{ }}}