I am not sure why this is failing with Error code 1813 is ERROR_RESOURCE_TYPE_NOT_FOUND , "test.dll is in the same directory as the source files and it compiles fine...
Code:#include "stdafx.h" #include "WinApp.h" #include <windows.h> in resource.h there is #define ID_DLL 106 in WinApp.rc there is ID_DLL RC_DATA "test.dll" #define MAX_LOADSTRING 100 char OutBuffer[64]; int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { HRSRC hResInfo = FindResource(NULL,MAKEINTRESOURCE(ID_DLL),RT_RCDATA); if(hResInfo != NULL) { MessageBox(NULL,"FindResource Loaded","",0); } else { wsprintf(OutBuffer,"%s %d\n","FindResource Failed",GetLastError()); MessageBox(NULL,OutBuffer,"",0); } return 0; }



LinkBack URL
About LinkBacks



