Display message from DLL
-
Dear All, I have an application which interacts with DLL inturn to a driver.. So when I press a button(named Load Driver) I should call a dll function.In this function i need to display a message that driver is loading and this displayed message should disappear after few minutes... For displaying this message i created a dialog ( using createDialog) and destroyed it after few minutes,But the problem is, the control (here static text) inside this dialog is not displaying and this createdialog tries to use dialog which i have in application .DLL is win32 prog.. Manjunath S GESL Bangalore
-
Dear All, I have an application which interacts with DLL inturn to a driver.. So when I press a button(named Load Driver) I should call a dll function.In this function i need to display a message that driver is loading and this displayed message should disappear after few minutes... For displaying this message i created a dialog ( using createDialog) and destroyed it after few minutes,But the problem is, the control (here static text) inside this dialog is not displaying and this createdialog tries to use dialog which i have in application .DLL is win32 prog.. Manjunath S GESL Bangalore
is ur dll created with MFC? if yes, add this AFX_MANAGE_STATE(AfxGetStaticModuleState()); at the beginning of your exporting function in dll. life is like a box of chocolate,you never know what you r going to get.
-
is ur dll created with MFC? if yes, add this AFX_MANAGE_STATE(AfxGetStaticModuleState()); at the beginning of your exporting function in dll. life is like a box of chocolate,you never know what you r going to get.
Dll is not Using MFC.Its a normal Dll Manjunath S GESL Bangalore
-
Dll is not Using MFC.Its a normal Dll Manjunath S GESL Bangalore
UpdateData(0)
? :rose: -
Dll is not Using MFC.Its a normal Dll Manjunath S GESL Bangalore
if u r using HWND CreateDialog(HINSTANCE hInstance,LPCTSTR lpTemplate, HWND hWndParent,DLGPROC lpDialogFunc); to create a dialog, make sure the parameter hInstance is correctly dilivered, it must be the dll module's instance. life is like a box of chocolate,you never know what you r going to get.
-
if u r using HWND CreateDialog(HINSTANCE hInstance,LPCTSTR lpTemplate, HWND hWndParent,DLGPROC lpDialogFunc); to create a dialog, make sure the parameter hInstance is correctly dilivered, it must be the dll module's instance. life is like a box of chocolate,you never know what you r going to get.
HI, How to get DLL module's instance for createDialog... Manjunath S GESL Bangalore
-
UpdateData(0)
? :rose:What part of "Dll is not Using MFC." did you miss? :rolleyes:
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
-
Dear All, I have an application which interacts with DLL inturn to a driver.. So when I press a button(named Load Driver) I should call a dll function.In this function i need to display a message that driver is loading and this displayed message should disappear after few minutes... For displaying this message i created a dialog ( using createDialog) and destroyed it after few minutes,But the problem is, the control (here static text) inside this dialog is not displaying and this createdialog tries to use dialog which i have in application .DLL is win32 prog.. Manjunath S GESL Bangalore
Manjunath S wrote:
But the problem is, the control (here static text) inside this dialog is not displaying...
Are there any other controls on the dialog that are not being displayed? If so, it sounds like a secondary thread is needed as the UI thread is too busy servicing other messages.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
-
HI, How to get DLL module's instance for createDialog... Manjunath S GESL Bangalore
BOOL WINAPI DllMain(HANDLE hinstDLL, DWORD dwReason, LPVOID lpvReserved); the first parameter is the dllmodule's instance. life is like a box of chocolate,you never know what you r going to get.