Search Results for '2010/04/05'


1 POSTS

  1. 2010/04/05 문자열 관련 by rCan

문자열 관련

1. CString to char *
ANSI 표준 함수인 strcpy 함수를 사용하여 변환한다.
ex)
CString strTemp;
char buffer[MAX_PATH];
//strcpy(buffer, (LPSTR)(LPCSTR)strTemp);
strcpy(buffer, strTemp.GetBuffer(strTemp.GetLength());
strTemp.ReleaseBuffer();

2. char * to CString
Type casting 을 통해 간단하게 사용한다.
ex)
CString strTemp;
char buffer[MAX_PATH];
strTemp=(LPSTR)buffer;
// (LPSTR)은 char *을 CString 형태로 변환한다.

[출처] : www.coolx.net

Posted by rCan

2010/04/05 09:51 2010/04/05 09:51
Response
No Trackback , No Comment
RSS :
http://rcan.net/rss/response/595


블로그 이미지

- rCan

Calendar

«   2010/04   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  

Notices

  1. About Me

Site Stats

Total hits:
118608
Today:
35
Yesterday:
120