|
-
January 6th, 2012, 12:58 AM
#1
error 1813_the resource type cannot be found in the image file
I'm trying to create a dialog from within the dll. I have a main window which is created using the CreateWindow() function and it takes the instance (hinstance) of the dll. hinstance variable is global in my case. I am calling createdialog() function using WM_CREATE message of CreateWindow(). CreateDialog() is being called from within a thread.
In my case, I am using the same global hinstance for the window and the CreateDialog() function. Can I use the same instance for creating a window and creating a dialog from within the window?
Am I seeing error 1813 (the resource type cannot be found in the image file) becuase of this? or is it that dll is not able to find the resource correctly? I also have two .rc files which dll uses (one is version.rc and other one is for the dialog resources). Can I use two resource files for one dll?
Can somebody please help me with my questions. Please find the createdialog() function I am using.
Thanks in advance.
P.S.
CreateDialog (g_hinstance, MAKEINTRESOURCE (DLG_MAIN), 0, (DLGPROC)DialogProc);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|