Where to add a dialog in a non-mfc dll?
-
Hi all, I wish to create a dialog from within my non-mfc dll. I want to start the dialog as soon as possible! Can I do it in PROCESS_ATTACH...? The docs says only simple initialization is allowed there. Anyone? /T
-
Hi all, I wish to create a dialog from within my non-mfc dll. I want to start the dialog as soon as possible! Can I do it in PROCESS_ATTACH...? The docs says only simple initialization is allowed there. Anyone? /T
-
In DLL_PROCESS_ATTACH, I call a function that creates and displays the window. Don't know if this is the correct way, however it works like a charm. regards
-
Can you not have the dialog as a static instance of the dll? Then the dialog will be constructed as soon as the dll is loaded, and its done in the correct order?
-
In DLL_PROCESS_ATTACH, I call a function that creates and displays the window. Don't know if this is the correct way, however it works like a charm. regards
Read the docs on
DllMain()
, it has lots of warnings about what you aren't supposed to do, such as call APIs outside of kernel32. If your code works, then you're lucky. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIER -
Read the docs on
DllMain()
, it has lots of warnings about what you aren't supposed to do, such as call APIs outside of kernel32. If your code works, then you're lucky. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIER -
See this article[^] about why following the
DllMain()
restrictions are important. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIER -
See this article[^] about why following the
DllMain()
restrictions are important. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIEROk... so HOW then do I create and call a dialog/window in a dll as soon as possible...? Actually, what I want is a splash screen that kicks in when somebody calls LoadLibrary(mydll). /Tommy
-
See this article[^] about why following the
DllMain()
restrictions are important. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIERInside PROCESS_ATTACH, is this a bad thing to do you mean: ---- hSplash = CreateWindow( "BUTTON", "Tommy testing Splash Screen...", WS_POPUP | BS_FLAT, (sx-W)/2, (sy-H)/2, W, H, NULL, NULL, hdll, NULL); ShowWindow(hSplash, SW_SHOW); UpdateWindow( hSplash); } // ... processing ... if ( hSplash) DestroyWindow( hSplash); ----