Search:
Type: Posts; User: Paul McKenzie
Search:
Search took 2.51 seconds.
-
My personal experience is that I don't use MFC to handle resources that are found in other modules. I create DLL's (non-MFC DLL's) that need resources loaded from other DLL's, and I have never used...
-
And 0xd0 in the FindResource is 208, so the dialog being searched for is correct, in terms of ID.
Therefore the most probable reason is what Vladimir and myself pointed out -- the module where...
-
Yep, we're thinking on the same level. The MFC way to do the LoadLibrary is the AFX_MANAGE_STATE.
Regards,
Paul McKenzie
-
Where does the code come from in your first post? The resource certainly cannot be found in that module where the code you posted comes from.
A DLL that contains resources must be loaded at...
-
What is the resource ID of the dialog? Is it numeric, or is it a string name?
Regards,
Paul McKenzie
-
If you do a File / Open in Visual Studio, and you open the DLL file you claim has the resource, the DLL file will be loaded, and you will see the resources.
Regards,
Paul McKenzie
-
What is the value of hInst? Is it the handle to the module that contains the dialog resource? If not, that is the reason for the error.
What is m_lpszTemplateName? Is it the name of the dialog...
-
The code you posted will not help, as all it does is show us that your syntax is OK. It doesn't tell us what is happening at runtime or anything else that would give any indication what the problem...
|
Click Here to Expand Forum to Full Width
|