본문 바로가기
반응형

atl8

[개발/VC++] ATL Window Class 종류 [개발/VC++] ATL Window Class 종류 ATL 은 COM을 지원하기 위해 디자인 되었지만 윈도우를 모델링 하는 클래스 영역도 포함한다고한다. 그리고 ActiveX 같은 윈도우를 가지는 객체도 만들수 있다.아래는 ATL 에서의 주요 윈도우 클래스들이다. CWindow - 윈도우를 조작하기 위한 Win32 APIs의 작은 랩퍼 클래스이다. 윈도우 핸들과 HWND 를 CWindow 로 변환하는 오퍼레이터를 포함한다. 그러므로 윈도우 핸들을 필요로하는 어떤 함수에 CWindow 오브젝트를 넘길수 있다. CWindowImpl - 이미 존재하는 윈도우를 서브클래싱 하거나 이미 존재하는 클래스를 수퍼클래싱 하거나 , 윈도우 베이스의 새로운 윈도우를 만들때 사용한다. CContainedWindow - 다.. 2016. 3. 21.
[개발/VC++] ATL CImage 클래스를 이용한 화면 크기와 일치하는 캡쳐하기 함수 [개발/VC++] ATL CImage 클래스를 이용한 화면 크기와 일치하는 캡쳐하기 함수입니다. // ATL CImage Class를 이용한 Screen Capture Source #include void CaptureWindow() { int nx =0, ny = 0; CImage cImg; CWnd *pDesktopWnd = GetDesktopWindow(); // 바탕화면 윈도우 인스턴스 HDC hDC = NULL; if(!pDesktopWnd) return; CWindowDC DeskTopDC(pDesktopWnd); // get HDC nx = GetSystemMetrics(SM_CXSCREEN); ny = GetSystemMetrics(SM_CYSCREEN); if(!cImg.Create(nx.. 2012. 1. 30.
[개발/VC++] 비주얼 스튜디오 2008에 WTL 8.0 설치하는 방법 쌈꼬쪼려 소백촌닭 VS 2008에서 WTL 8.0 Project Wizard 설치하는 방법 ( 비주얼 스튜디오 2008에 WTL 8.0 설치하는 방법) How can I install WTL 8.0 Project Wizards in VS 2008? 비주얼 스튜디오 2008에 WTL 8.0 설치하는 방법을 알아보자. 아마 이 게시물을 보게 된 이유는 fatal error C1083: 포함 파일을 열 수 없습니다. 'atlapp.h': No such file or directory 와 같은 비주얼 스튜디오 C++ 컴파일 에러 때문에 검색해서 오게 되었을 가능성이 높다고 생각이든다. atlapp.h는 ATL이 아니라 WTL이기 때문이다. 그래서 WTL 8.0을 설치해주어야 한다. 1 WTL 8.0을 찾아서 다.. 2010. 12. 9.
[VC++] Building Browser Helper Objects with Visual Studio 2005 Building Browser Helper Objects with Visual Studio 2005 Tony Schreiner, John Sudds Microsoft Corporation October 27, 2006 Summary: This article demonstrates how to use Microsoft Visual Studio 2005 to create a simple Browser Helper Object (BHO), a Component Object Model (COM) object that implements the IObjectWithSite interface and attaches itself to Internet Explorer. This article describes how .. 2010. 10. 1.
[VC++/MFC] COM/ATL/STL - BSTR과 VARIANT, string, CComBSTR COM/ATL/STL - BSTR과 VARIANT, string, CComBSTR COM 관련 코드를 작성하려고 보면 여기서만 쓰이는 생소한 데이터 형들이 등장하는데, 그중 문자열관련해서 다음과 같은 것을 볼 수 있다. BSTR Pascal-Style(길이값 내장)과 C-Style(널종료문자)을 섞어 놓은 형식으로 기본 구조는 다음과 같다. - 4Byte(길이정수) + 문자값(2Byte) + 종료문자( 0 2개 ) 즉, 최초에 DWORD의 정수데이터가 붙고 그 뒤로 Unicode식의 2Byte Encoding 문자열이 붙는형식이다. 그러나 이 앞쪽의 정수 부분은 C++ 코드 작성시에는 없다고 생각해야 한다. 왜냐하면, typedef OLECHAR* BSTR; 로 선언 되어 있기 때문. COM을 통해 데이.. 2010. 9. 30.
[VC++] ATL에서 MFC사용, COM관련 확장, MDAC, ADSI사용 1. stdafx.h 파일에 #include 위에 아래와 같이 include 하면 됩니다. 2. 필요에 따라 프로젝트 속성 - 링커 - 입력에 comsvcs.lib activeds.lib adsiid.lib wininet.lib 를 추가합니다. ///////////////////////////////////////////////////////////////////////////// // EOCS_ADD ///////////////////////////////////////////////////////////////////////////// // - MFC 지원 #include // MFC 자동화 클래스입니다. - 코어 및 표준 컴포넌트 #include // MFC 자동화 클래스입니다. - 확장 #incl.. 2010. 9. 29.
[vc++] Implementing Web Browser Band Using ATL HTML Control Implementing Web Browser Band Using ATL HTML Control The Web Browser Bands were introduced in IE 4.0 , they provide a child window (can be both Horizontal and Vertical ) within the main explorer window. The Search, History and Favourites bars are examples of this bar. These bands can be used to customise the explorer, to display information and for taking user input. To create these bars we have.. 2010. 9. 15.
[개발/웹] VC++ ATL을 이용한 Scriptable ActiveX 제작 A Complete Scriptable ActiveX Web Control Tutorial using ATL By Arif Zaman | 18 Dec 2007 | Unedited contribution An article on Scriptable ActiveX Web Control using ATL Is your email address OK? You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please click here to have a confirmation email sent so we can confirm your e.. 2010. 9. 13.
반응형