전체 글 389

DLL 테스트할 샘플 코드 만들기 - 프로젝트 병합 살펴볼 것

DLL 테스트할 샘플 코드 만들기Code Story/Referance 2008/04/03 00:02 안녕하세요 ^^* 딸기우유 입니다. 이 포스트는 프로그래밍에 대해 직접 올리는 첫 포스트 입니다. 저도 포스트를 쓰며 공부했던 내용을 정리하고 누군가에게는 답답함을 시원하게 풀어주는 좋은 자료가 되기를 바랍니다. 그럼 시작해 보겠습니다. Visual C++ 6.0을 이용해 간단하게 DLL을 테스트하는 샘플 프로젝트를 만들어 보겠습니다. DLL(Dynamic Link Library)는 동적 연결 라이브러리 입니다. 동적 연결이란 것은 프로그램 내부에 라이브러리가 있는게 아니라 따로 외부에 있고, 필요할때 라이브러리를 로드 시켜서 사용하는 것입니다. 구조는 아래와 같이 진행 하겠습니다. DLL 프로젝트와 DL..

API 2008.08.29

싱크 부분 구현 참조.....

InkOverlayEv.h C:\home\SVGCats_src\src\InkOverlayEv.h [–ÚŽŸ | Œ^EƒNƒ‰ƒXE\‘¢‘Ì | ƒ}ƒNƒ] –ÚŽŸ 1. IUnknown Interface 2. IDispatch Interface 3. Events - overridden functions 4. Methods 5. Data Members Œ^EƒNƒ‰ƒXE\‘¢‘̈ꗗ InkOverlayEvents ƒNƒ‰ƒX ƒ}ƒNƒˆê—— INKOVERLEYEV_H ƒ}ƒNƒ 1|/* 2|* This file was made by refering from Tablet PC SDK. 3|* "E:\Program Files\Microsoft Tablet PC Platform SDK\Sa..

COM, ATL 2008.08.28

The AtlSink.exe sample demonstrates how to implement a dispinterface sink by using the Active Template Library (ATL) in Visual C++

The AtlSink.exe sample demonstrates how to implement a dispinterface sink by using the Active Template Library (ATL) in Visual C++ View products that this article applies to. Article ID : 181277 Last Review : June 2, 2005 Revision : 5.0 This article was previously published under Q181277 On This Page SUMMARY MORE INFORMATION Visual C++ 6.0 Visual C++ .NET A Connectable Object A Sink Two Ways to ..

COM, ATL 2008.08.28

Dispinterface vs. Events and Runtime Sinks - 싱크에서 디스핀터페이스 사용 코딩 구현 참조

Dispinterface vs. Events and Runtime Sinks Rating: none Andrew Whitechapel (view profile) April 12, 2001 In the normal COM scheme of things, the communication between client and server is driven by the client. The client creates the server's COM object, and makes calls into the object as it needs to. The object generally sits there passively waiting for calls from clients. However, sometimes, th..

COM, ATL 2008.08.28

논리상 생성자에서 처리해도 되는 것을 Init 함수를 따로 빼서 사용하는 이유

생성자는 리턴값을 따로 두지 않는다. 에러를 조사하고자 하는 경우는 리턴값으로 확인할 수 없다. 그래서 초기화 함수를 따로 빼서 코딩해야하는 경우가 있다. 컴포넌트 관련 코딩에서 많이 발견된다. 물론 객체 생성후 항상 Init함수를 호출해준다. 다음은 그 예이다. // 생성자 COEnumConnections::COEnumConnections( IUnknown* pHostObj) { // Zero the COM object's reference count. m_cRefs = 0; // Assign the Host Object pointer. m_pHostObj = pHostObj; // Initialize the Connection Point enumerator variables. m_iEnumIndex ..

C, C++ 문법 2008.08.27