프리컴파일(JSP 파일을 미리 컴파일)이라는 기능은 웹에서 HTTP를 이용해서 원하는 JSP 페이지에 대한 컴파일만을 처리할 수 있는 간단하면서도 강력한 방법이다.
Hello.jsp?jsp_precompilation Hello.jsp?jsp_precompilation=true Hello.jsp?title=java&jsp_precompilation=true
프리컴파일(JSP 파일을 미리 컴파일)이라는 기능은 웹에서 HTTP를 이용해서 원하는 JSP 페이지에 대한 컴파일만을 처리할 수 있는 간단하면서도 강력한 방법이다.
Hello.jsp?jsp_precompilation Hello.jsp?jsp_precompilation=true Hello.jsp?title=java&jsp_precompilation=true
/* 아래 두 문장은 같은 의미이다. */ <jsp:useBean id="customer" class="mybean.customer.CustomerBean"/> mybean.customer.CustomerBean = new mybean.customer.CustomerBean();
만약 자바빈 클래스 파일을 불러오면서 초기화할 내용이 있다면 <jsp:useBean/>을 시작 태그와 종료 태그 형태로 쓴 다음 가운데 초기화할 내용을 적어주면 됩니다.
<jsp:useBean> ... 초기화할 내용
Adding MRU to MFC SDI or MDI is actually not very difficult. I just add ?AddToRecentFileList(LPCTSTR lpszPathName) to ?CDocument derived class which calls the add the path name to ?CWinApp’s ?CRecentFileList (m_pRecentFileList). I use SDI for this demo.
1. Iinclude afxadv.h to stdafx.h. This contains the
1. 우선 여러분의 프로젝트에서 리소스를 새로 추가한다. 이때 “Custom”을 선택하여 리소스 타입에 “24”라고 입력한다.
2. 에디터에 아래의 XML 구문을 복사하여 붙여넣는다.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"<assemblyIdentity processorArchitecture="x86" version="5.1.0.0" type="win32" name="test.exe"/<descriptionTest Application</description<dependency<dependentAssembly<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0"
한글 리소스 블럭
///////////////////////////////////////////////////////////////////////////// // Korean resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_KOR) #ifdef _WIN32 LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT #pragma code_page(949) #endif //_WIN32 ... #endif
일본어 리소스 블럭
///////////////////////////////////////////////////////////////////////////// // Japanese resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_JPN) #ifdef _WIN32 LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT #pragma code_page(932) #endif //_WIN32 ... #endif
영어 리소스 블럭
///////////////////////////////////////////////////////////////////////////// // English
마우스 Hover, Leave를 구현하고자 하는 서브클래싱된 컨트롤의 헤더 파일에 아래의 두 함수를 추가하도록 한다.
//{{AFX_MSG(CHoverButton) afx_msg LRESULT OnMouseLeave(WPARAM wparam, LPARAM lparam); afx_msg void OnMouseHover(WPARAM wparam, LPARAM lparam); //}}AFX_MSG
다음으로 소스파일의 메시지맵에 메시지에 대한 함수를 연결하도록 한다.
BEGIN_MESSAGE_MAP(CHoverButton, CButton) ON_MESSAGE(WM_MOUSELEAVE, OnMouseLeave) ON_MESSAGE(WM_MOUSEHOVER, OnMouseHover) END_MESSAGE_MAP()
다음으로 실제 함수를 구현해주면 된다.
void CHoverButton::OnMouseHover(WPARAM
/* Parse command line for standard shell commands, DDE, file open */ CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); /* 프로그램 시작시 자식창이 바로 오픈되지 않도록 한다. */ cmdInfo.m_nShellCommand = cmdInfo.FileNothing; /* Dispatch commands specified on the command line */ if (!ProcessShellCommand(cmdInfo)) return FALSE;
이 후 부터는 VC6 이 “C:\Program Files\Microsoft Visual Studio” 에 설치되었다고 가정합니다. 따라서 MSDEV.exe 파일은 “C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin” 에 위치하게 됩니다.
VC6의 MSDEV.exe 파일이 있는 폴더에는 AUTOEXP.dat 란 파일이 존재합니다.
AUTOEXP.dat 파일은 툴팁에서나 디버그 Watch 창에서 해당 변수의 내용을 어떻게 표시할 지를 사용자가 결정할 수 있게 해줍니다.
간단하게 예를