160 likes | 478 Vues
CxImage. Library Download. 홈페이지에서 압축된 Library 를 Download. UnZip. 압축을 푼 후 , Visual Studio 를 이용하여 폴더안의 CxImgLib.dsw 를 실행. Library Build. 파일 탭에서 Shift 키를 이용하여 전체파일을 지정한 후 , build 실행. Lib & Header Files. 각 폴더 안의 .lib 파일은 bin 폴더로 , .h 파일은 CxImage 폴더로 복사. Include files.
E N D
Library Download 홈페이지에서 압축된 Library를 Download.
UnZip 압축을 푼 후, Visual Studio를 이용하여 폴더안의 CxImgLib.dsw를 실행
Library Build 파일 탭에서 Shift키를 이용하여 전체파일을 지정한 후, build 실행
Lib & Header Files 각폴더 안의 .lib파일은 bin 폴더로, .h파일은 CxImage 폴더로 복사
Include files Tools-Options-Directories에서 Include files를 .h 폴더로 지정
Library files Tools-Options-Directories에서 Library files를 .lib 폴더로 지정
Library files Setting CxImage를 이용할 프로젝트 생성시, Project->Settings->Link에서 .lib파일 추가
Add Member Variable Doc 클래스에 CxImage 포인터 변수 추가
Add Virtual Functions Doc 클래스에서 DeleteContents, OnOpenDocument 가상함수 추가
OnOpenDocument OnOpenDocument 가상함수를 다음과 같이 작성
DeleteContents DeleteContents 가상함수를 다음과 같이 작성
~Doc::~Doc() Doc 클래스의 생성자 함수에서 포인터 변수 초기화
~View::OnDraw() View 클래스에서 OnDraw함수를 다음과 같이 작성 여기까지 실행 후, 빌드하여 그림파일 불러오기 확인
Add Menu Resources 탭의 Menu에서 자신의 메뉴 추가
~View::~Menu() 추가한 메뉴 함수를 다음과 같이 작성