반응형 LPTSTR2 [개발/MFC] 형 변환 [개발/MFC] 형 변환 http://blog.naver.com/PostView.nhn?blogId=wlsdnrtjd&logNo=20141848341&categoryNo=0&parentCategoryNo=17&viewDate=¤tPage=6&postListTopCurrentPage=&isAfterWrite=true&userTopListOpen=true&userTopListCount=10&userTopListManageOpen=false&userTopListCurrentPage=6 ▶ CString -> BYTE BYTE* temp; CString cmd; 에서 cmd 의 값을 temp에 할당하려 할때. temp=new BYTE[255]; temp=(LPBYTE)(LPCSTR)cmd; delet.. 2011. 12. 20. [VC++/MFC] CString to char * 와 char * to CString CString -> char * CString str; str = "Hello"; char* ss = LPSTR(LPCTSTR(str)); char * --> CString char ss[] = "Hello"; CString str; str.Format("%s", ss); (Format대신에 GetBuffer()를 써도 됩니다.) 지식인! Environment: Compiled using VC6.0 Sp3 and tested using Win95/98 WinNT4.0 and Win 2000 Here are a few data Conversions with small examples :- PART ONE :- DECIMAL CONVERSIONS Decimal To Hexa :- Use _itoa( ) fu.. 2010. 9. 30. 이전 1 다음 반응형