본문 바로가기

C++20

floating point overflow 검사 참고: http://www.cplusplusdevelop.com/47_23295818/ DBL_MAX, DBL_MIN은 C++은 에 define 되어 있고 C는 에 define 되어 있다. 이것을 이용하면 된다. C++의 에 정의된 std::numeric_limits를 이용해도 된다. #include #include #include int main() { std::cout 2014. 8. 28.
JSON Spirit: A C++ JSON Parser/Generator Implemented with Boost Spirit 출처: http://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-JSON-Parser-Generator-Implemented 관련 소스는 출처 사이트 참고~IntroductionJSON is a text file format similar to XML, but less verbose. It has been called "XML lite". This article describes JSON Spirit, a C++ library that reads and writes JSON files or streams. It is written using the Boost Spirit parser generator. If you are already using Boost,.. 2014. 5. 13.
C++ Json Parser http://jsoncpp.sourceforge.net/ http://sourceforge.net/projects/jsoncpp/ http://json.org/ JSON: JavaScript Object Notation (자바스크립트 오브젝트 표기법) Web에서 일반적으로 많이 사용하는 데이터 교환 방식이다. C++에서 유명한 Json parser이다. 2014. 5. 7.
GetCurrentProcess function 출처: http://msdn.microsoft.com/en-us/library/windows/desktop/ms683179(v=vs.85).aspx GetCurrentProcess functionRetrieves a pseudo handle for the current process.SyntaxC++HANDLE WINAPI GetCurrentProcess(void); ParametersThis function has no parameters.Return valueThe return value is a pseudo handle to the current process.RemarksA pseudo handle is a special constant, currently (HANDLE)-1, that is in.. 2014. 3. 4.
프로세스 메모리 사용량 확인 sample 프로그램 by MSDN 출처: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682050(v=vs.85).aspx Collecting Memory Usage Information For a ProcessTo determine the efficiency of your application, you may want to examine its memory usage. The following sample code uses the GetProcessMemoryInfo function to obtain information about the memory usage of a process.C++#include #include #include // To ensure correct r.. 2014. 3. 4.
GetProcessMemoryInfo function GetProcessMemoryInfo functionRetrieves information about the memory usage of the specified process.SyntaxC++BOOL WINAPI GetProcessMemoryInfo( _In_ HANDLE Process, _Out_ PPROCESS_MEMORY_COUNTERS ppsmemCounters, _In_ DWORD cb ); ParametersProcess [in]A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION orPROCESS_QUERY_LIMITED_INFORMATION access right and the PROCESS_VM_READ .. 2014. 3. 4.
VirtualQuery function 출처: http://msdn.microsoft.com/en-us/library/aa366902%28VS.85%29.aspx Retrieves information about a range of pages in the virtual address space of the calling process.To retrieve information about a range of pages in the address space of another process, use the VirtualQueryEx function.SyntaxC++SIZE_T WINAPI VirtualQuery( _In_opt_ LPCVOID lpAddress, _Out_ PMEMORY_BASIC_INFORMATION lpBuffer, _In_ .. 2014. 3. 4.
MFC 표준 컨트롤에서 컨트롤 파생 출처: http://msdn.microsoft.com/ko-kr/library/cc485501(v=vs.71).aspx#feedback CWnd 파생 클래스를 사용하면 기존 컨트롤 클래스에서 새 클래스를 파생시켜 컨트롤의 동작을 수정할 수 있습니다.파생 컨트롤 클래스를 만들려면기본 컨트롤 클래스에 클래스를 파생시키고 Create 멤버 함수를 재정의하여 기본 클래스 Create 함수에 필요한 인수를 제공하도록 합니다.메시지 처리기 멤버 함수와 메시지 맵 엔트리를 제공하여 특정 Windows 메시지에 응답하는 컨트롤의 동작을 수정합니다. 함수에 메시지 매핑을 참조하십시오.필요에 따라 새 멤버 함수를 제공하여 컨트롤의 기능을 확장합니다.대화 상자에 파생 컨트롤을 사용하기 위해서는 추가 작업이 필요합니다. 대화.. 2014. 2. 14.
MFC Custom Controls 출처: http://msdn.microsoft.com/en-us/library/bk2h3c6w.aspx TN014: Custom Controls This note describes the MFC Support for custom and self-drawing controls. It also describes dynamic subclassing, and describes the relationship between CWndobjects and HWNDs. The MFC sample application CTRLTEST illustrates how to use many custom controls. See the source code for the MFC General sample CTRLTEST and o.. 2014. 1. 20.
LIST