各種文字タイプ変換


                                                                 
    :        Unicode  
1.CString int|int CString
-----------------------------------------------------------------------------------------------------------------------------------
   :CString int
CString strTriNum = _T("123");
int iTriNum = 0;
iTriNum = __tstoi(strTriNum);
  :atoi ansi   ;_tstoi    ansi   unicode   。
-----------------------------------------------------------------------------------------------------------------------------------------------
   :int CString
int iTriNum = 0;
CString strTriNum;
strTriNum.Format("%d",iTriNum);

2.CString WCHAR*
   :   Unicode  
CString strTriNum = _T("123");
WCHAR* szFileName = strXFilePath.AllocSysString();


3.CString float|flaot CString
-----------------------------------------------------------------------------------------------------------------------------------
   :CString float
CString strTriNum = _T("123");
float fTriNum = 0;
fTriNum = __tstof(strTriNum);
-----------------------------------------------------------------------------------------------------------------------------------------------
   :float CString
float fTriNum = 0;
CString strTriNum;
strTriNum.Format("%f",fTriNum);

3.CString double|double CString
-----------------------------------------------------------------------------------------------------------------------------------
   :CString double
CString strTriNum = _T("123");
float fTriNum = 0;
fTriNum = __tstof_l(strTriNum);
-----------------------------------------------------------------------------------------------------------------------------------------------
   :double CString
doulbe fTriNum = 0;
CString strTriNum;
strTriNum.Format("%lf",fTriNum);
未完待续....