다음을 통해 공유


AfxSetResourceHandle

Use this function to set the HINSTANCE handle that determines where the default resources of the application are loaded.

void AFXAPI AfxSetResourceHandle( 
   HINSTANCE hInstResource  
);

매개 변수

  • hInstResource
    The instance or module handle to an .EXE or DLL file from which the application's resources are loaded.

예제

// This code is taken from CMyApp::InitInstance
HINSTANCE hRes = NULL;
hRes = LoadLibrary(_T("Resource.dll"));
if(hRes)
   AfxSetResourceHandle(hRes);

요구 사항

헤더: afxwin.h

참고 항목

참조

AfxGetInstanceHandle

AfxGetResourceHandle

개념

MFC 매크로 및 전역