Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
TRY
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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);

Header: afxwin.h

Community Additions

ADD
Show:
© 2015 Microsoft