More actions
include
- CxImage 폴더 복사
- Debug 에 CxImage.lib 복사
- StdAfx.h 에 #include "ximage.h" 선언
- Set->C/C++ ->Category 에서 Preprocessor 선택
- Additional 에 ./include
- link-> object/library modules 에 Debug/CxImages.lib
Image Load
보통 Document 에서 관리
BOOL CCxDoc::OnOpenDocument(LPCTSTR lpszPathName)
{
if (!CDocument::OnOpenDocument(lpszPathName))
return FALSE;
// TODO: Add your specialized creation code here
m_pImage = new CxImage;
m_pImage->Load(lpszPathName, CxImage::FindType(lpszPathName));
return TRUE;
}
Drop and Drag 실행 가능
App Class 에서 InitInstance() 의 아래부분 주석 처리
//if (!ProcessShellCommand(cmdInfo)) // return FALSE;