전체 글298 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. SetWindowPos() 함수를 이용해서 Dialog가 뒤로 사라지는 문제 수정 C++Builder로 개발중에 Windows 7 64bit에서 Print Driver setting 후에 PrintSetupDlg가 뒤로 사라지는 문제가 발생했다. 여러가지 방법을 찾아 보았지만 아래와 같은 방식으로 처리를 해서 해결을 했다.void __fastcall TForm::FormCreate(TObject *Sender) { PrinterSetupDialog->OnShow = OnPrintSetupDlgShow; } //--------------------------------------------------------------------------- void __fastcall TForm::OnPrintSetupDlgShow(TObject *Sender) { SetWindowPos(Print.. 2014. 4. 29. Java 보안 등급 변경하기 Java가 업데이트 되면서 보안 설정이 바뀌었다고 한다. 이것 때문에 잘 작동하던 Java 프로그램이 웹에서 작동하지 않는 문제가 발생했다.이 때 'Java 제어판'에서 보안 등급을 변경하면 문제가 해결이 된다. Windows 7 64bit를 기준으로 설명하면 "C:\Program Files (x86)\Java\jre7\bin\javacpl.exe" 파일이 있다.javacpl.exe 파일을 실행하면 아래와 같은 'Java 제어판'이 나타난다.'보안' 탭에서 레벨을 "중간"으로 변경하고 '확인'을 눌러 저장한다. IE를 사용할 경우 IE를 '관리자 권한으로 실행'하여 Java 어플을 실행하면 문제가 해결된다. 2014. 3. 31. 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. 이전 1 ··· 15 16 17 18 19 20 21 ··· 34 다음