将开源exe项目代码加入dll中 , 图片资源加载. Resources 目录和 my.dll 放在同级目录下
HMODULE handle = ::GetModuleHandle(L"my.dll");
WCHAR path[256] = {0};
GetModuleFileName(handle, path, 255);
CString curModulPath = path;
// 目录带 反斜杠
curModulPath = curModulPath.Left(curModulPath.ReverseFind('\\') + 1);
//HICON APPICON_BIG = ::LoadIcon(GetInstance(),MAKEINTRESOURCE(IDI_APPICON_BIG));
CString strImgPath = curModulPath + L"Resources\\IconRes\\AppIconBig.ico";
HICON APPICON_BIG = (HICON)LoadImageW(handle, strImgPath, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);