I am working on an application in which a call is made to a DLL. From that dll a dialog has to be displayed. While doing so I was not able to see the dialog. Dialog is not getting displayed. When i checked the code in debug that handle of the dialog is not assigned. What might be the possible cause for this can you help me...
If the application program is a console program then you may have to have a WinMain() inside the dll and call it from the dll. For example if you have a function named foo() in the dll then foo() would call its WinMain() using HINSTANCE that it gets by calling GetModuleHandle(). You could probably name the function anything you want, I just used WinMain()
Here's an example DLL that I did for this thread. I got some of the code from other threads here at DaniWeb.
I have just narrowed down the error part. When my code is trying to display the dialog to the DLL the error obtained is 1812(Error_Resource_Data_Not_Found). can anyone guide me how to find which resource is missing?
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...