MFC DLL question
-
I am curently loading a dll like this static HMODULE hMod ; hMod = LoadLibrary("Updater.dll");exit(1); if(!hMod) { AfxMessageBox("not found !!!!!"); exit(1); } FreeLibrary(hMod); The mfc app loads the mfc dll and exits, but is it possible to define some sort of return value in the mfc dll that the mfc app closes while the dll continue processing?
-
I am curently loading a dll like this static HMODULE hMod ; hMod = LoadLibrary("Updater.dll");exit(1); if(!hMod) { AfxMessageBox("not found !!!!!"); exit(1); } FreeLibrary(hMod); The mfc app loads the mfc dll and exits, but is it possible to define some sort of return value in the mfc dll that the mfc app closes while the dll continue processing?
-
I am curently loading a dll like this static HMODULE hMod ; hMod = LoadLibrary("Updater.dll");exit(1); if(!hMod) { AfxMessageBox("not found !!!!!"); exit(1); } FreeLibrary(hMod); The mfc app loads the mfc dll and exits, but is it possible to define some sort of return value in the mfc dll that the mfc app closes while the dll continue processing?
As far as I know a DLL must be used from another application. If you load that DLL from the scope of your app, and then you close your app, this should make the DLL not to continue working. I can only think on create a service and activate it from your app, this service should control that DLL. Of course this can be a service or another process, but not the program that will be closed. Hope this helps.
-
As far as I know a DLL must be used from another application. If you load that DLL from the scope of your app, and then you close your app, this should make the DLL not to continue working. I can only think on create a service and activate it from your app, this service should control that DLL. Of course this can be a service or another process, but not the program that will be closed. Hope this helps.
yes, makes sence. thanks