AfxSetResourceHandle 

void AfxSetResourceHandle( HINSTANCE hInstResource );

Parameters

hInstResource

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

Remarks

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

See Also   AfxGetInstanceHandle, AfxGetResourceHandle