LPCTSTR

    LPTSTR 자료형의 문자열 치환

    UINT Replace( LPTSTR target, LPCTSTR source, LPCTSTR find, LPCTSTR replace ) { UINT i, nCount=0; BOOL bFind; LPCTSTR ps, pf; LPTSTR buf=NULL, pt = target; size_t nLenSrc = _tcslen( source ); buf = new TCHAR[nLenSrc+1]; if ( buf == NULL ) return NULL; _tcsncpy( buf, source, nLenSrc ); buf[nLenSrc] = 0; for(ps=buf; *ps; ps++) { if ( find[0] == *ps ) { bFind = TRUE; for(pf=find+1, i=1; *pf; pf++, i..