- void SResource()
- {
- HINSTANCE Res;
- HINSTANCE ResourceDll;
- //加载资源文件
- ResourceDll = AfxLoadLibrary(_T("MyResource.dll"));
- if (NULL == ResourceDll)
- {
- return;
- }
- //切换资源
- Res = AfxGetResourceHandle();
- AfxSetResourceHandle(theApp.m_hInstance);
- AfxSetResourceHandle(ResourceDll);
- }
- void Delete Resource()
- {
- AfxSetResourceHandle(AfxGetInstanceHandle());
- }
VC程序资源的替换
最新推荐文章于 2018-10-17 10:54:01 发布