MFC Dialog with Progressbar cannot be launch in Window 7
-
Hi, dear all, I have a MFC application created in C++ 6.0, it works fine in Window XP. When run this application in Window 7, if the dialog has progressbar on it, this dialog cannot be launched, but if you remove this progressbar or for dialog without progressbar, everything is fine. But no all Window 7 computers have this error, only very few computer have this problem. Is there anybody having this issue? or any idea? Thanks!
-
Hi, dear all, I have a MFC application created in C++ 6.0, it works fine in Window XP. When run this application in Window 7, if the dialog has progressbar on it, this dialog cannot be launched, but if you remove this progressbar or for dialog without progressbar, everything is fine. But no all Window 7 computers have this error, only very few computer have this problem. Is there anybody having this issue? or any idea? Thanks!
I've used progress bars on Win7 with no issue. What do you mean it didn't launch? Was there an error? If so, what was the error?
-
I've used progress bars on Win7 with no issue. What do you mean it didn't launch? Was there an error? If so, what was the error?
Thanks for your reply. As I said, most of the Window 7 computers have no problem to run this application, but some did have this issue. If the dialog has progressbar on it, when you call Dialog.Domal(), even the OnInitDialog() function is not called. I put a messagebox at the first line in OnInitDialog() function, when I open the dialog, no any message, just nothing, no any response.
-
Thanks for your reply. As I said, most of the Window 7 computers have no problem to run this application, but some did have this issue. If the dialog has progressbar on it, when you call Dialog.Domal(), even the OnInitDialog() function is not called. I put a messagebox at the first line in OnInitDialog() function, when I open the dialog, no any message, just nothing, no any response.
If the same .exe file runs on some W7 machines and not others, then the problem is clearly something environmental on the machines that fail. Check for missing DLLs on the failing machines. Or build your application with MFC and C RTL as static libraries and try it that way.
-
Thanks for your reply. As I said, most of the Window 7 computers have no problem to run this application, but some did have this issue. If the dialog has progressbar on it, when you call Dialog.Domal(), even the OnInitDialog() function is not called. I put a messagebox at the first line in OnInitDialog() function, when I open the dialog, no any message, just nothing, no any response.
The
OnInitDialog()
occurs after the creation of a window, so there's the possibility that the creation is failing and you're not checking that. Check the return ofDoModal()
andGetLastError()
for errors. -
If the same .exe file runs on some W7 machines and not others, then the problem is clearly something environmental on the machines that fail. Check for missing DLLs on the failing machines. Or build your application with MFC and C RTL as static libraries and try it that way.