[C/C++] INI 함수 클래스 /////////////////////////////////////////////////////////////////// // Ini.h // // "CIni" is a simple API wrap class used for ini file access. // The purpose of this class is to make ini file access more // convenient than direct API calls. // // This file is distributed "as is" and without any expressed or implied // warranties. The author holds no responsibilities for any possible damages // o.. 더보기 [MFC] File Operations Source /** \file FileOperations.h Project: FopDemo\n Project type: MFC App\n Author: Vinnichenko Alexey\n E-mail: subj@mail.ru\n Description: Declaration of CFileOperation class and CFileExeption class. */ #include "resource.h" #define PATH_ERROR -1 #define PATH_NOT_FOUND 0 #define PATH_IS_FILE 1 #define PATH_IS_FOLDER 2 class CFExeption { public: CFExeption(DWORD dwErrCode); CFExeption(CString sErrTex.. 더보기 [MFC] Type Casting Source CString -> char (포인터 값으로 저장) CString str = "Hello"; char * ch = NULL; ch = (LPSTR)(LPCSTR)str; 또는 ch = str.GetBuffer(str.GetLength()); // str의 포인터 값을 ch에 저장한다. CString -> char (배열에 복사) CString str = "Hello"; char ch[100] = {0,}; strcpy(ch, (LPSTR)(LPCSTR)str, str.GetLength()); // NULL을 만나기 전까지의 문자를 str에서 ch로 복사한다. char -> CString (복사) char ch[] = "Hello"; CString str; str = ch; // operator = 연산자.. 더보기 이전 1 ··· 8 9 10 11 12 13 14 ··· 61 다음