C++/(ATL)CCom Variant를 이용한 Is Number

  1. CString str(_T("a"));
  2. CComVariant v = str;
  3. if (v.ChangeType(VT_R8) != S_OK) {
  4.     // string is not number
  5. }

이 글에는 0 개의 댓글이 있습니다.