본문 바로가기

C & C++

wxWidgets 리눅스 상에서의 한글 표시 wxWidgets 리눅스 상에서 한글을 표시하려면 초기화 하는 부분에 다음 문장을 넣어준다.Unicode에서 잘 작동된다. 이것 때문에 얼마나 삽질을 했는지... ㅠㅠ long language = wxLANGUAGE_KOREAN; wxLocale* locale = new wxLocale(); locale->Init(language); 더보기
libcurl - FTP 디렉토리 확인, 파일 존재 확인, 파일 삭제 방법 libcurl로 ftp 서버에 디렉토리가 있는지 확인하는 방법 http://stackoverflow.com/questions/12046305/c-how-to-check-if-a-directory-exists-on-an-ftp-server-using-libcurl libcurl로 ftp 서버에 파일이 있는지 확인하는 방법 http://cboard.cprogramming.com/cplusplus-programming/78867-check-if-file-exists-ftp.html libcurl로 ftp 서버에 존재하는 파일을 삭제하는 방법 http://comments.gmane.org/gmane.comp.web.curl.general/13183 더보기
wxString to MediaInfoDLL::String (std::basic_string<char>) wxString wStr = _("ABC"); MediaInfoDLL::String str = (MediaInfoDLL:String)wStr.c_str();*** DO NOT LOST WAY!! *** 더보기
wxWidgets Compile Options 1. Download wxWidgets 2.8 -> Unzip C:\wxWidgets-2.8.122. mingw32-make.exe PATH 등록3. CD C:\wxWidgets-2.8.12\build\msw4. Compilemingw32-make -f makefile.gcc MONOLITHIC=1 BUILD=debug UNICODE=1 USE_OPENGL=1mingw32-make -f makefile.gcc MONOLITHIC=1 BUILD=debug UNICODE=0 USE_OPENGL=1mingw32-make -f makefile.gcc MONOLITHIC=1 BUILD=release UNICODE=1 USE_OPENGL=1mingw32-make -f makefile.gcc MONOLITHIC=1 .. 더보기
wxWidget for Windows eclipse 깔고, MinGW 깔고, wxWidget 깔고, C:\wxWidget-x.x.x\build\msw 디렉토리에 가서, make -f makefile.gcc BUILD=debug UNICODE=1 SHARED=0 위와 같이 컴파일을 해서 라이브러리를 컴파일한다. wxWidget 은 debug 인지 아닌지, 유니코드를 쓰는지 안 쓰는지에 따라 라이브러리 파일명이 틀리므로 주의하자. eclipse 에서 File -> New -> C++ Project 를 해서 일반적인 Executable 을 만든다. 프로젝트에 대고 오른쪽 버튼 -> New -> Source File 로 main.cpp 를 만든다. 프로젝트에 대고 오른쪽 버튼 -> Properties 를 선택. C/C++ Build -> Setti.. 더보기
Setting up Eclipse + wxWidgets 2.8.10 ** 주의 : 리눅스/유닉스용이다. 도중 exe파일 다운 받는 것은 신경쓰지 마시라. After we have built our Debug and Release versions of wxWidgets now I show you how to setup wxWidgets with Eclipse. Pre-Requisites - Eclipse (I prefer the C++ Developers version. It's lighter than the standard version, it comes with the CDT plugin already installed and it solved me some problems I had with the standard version with the CDT manually.. 더보기