#176725 - mymateo - Wed Sep 21, 2011 6:13 am
Hey all, me again. Well a project that I needed help getting to function is nearing its completion, and now I have to work out a few kinks. I started a new topic because this isn't really a question on programming (and that was the issue at hand when I created the last topic).
The operation is as such: The program is required to load up with Windows as it is designed to automatically install programs, set registry entries, and do all of the Windows Updates (automatic updates is too passive, need something that aggressively downloads and installs updates until they're all done).
The ISSUE is this: When the program loads up, it is SO gung-ho to just pick up and start going on its next task (or continue on with updates, whichever is the case) that it doesn't even bother to take the time to draw its own window before it starts doing all its work. What ends up happening is that it will run as if it's in the background (can see in Task Manager, but not the taskbar... not right away) until it's finished doing the grunt work; when it finally slows down enough to allow user interaction THEN it will draw the window. But because it's on automatic on reboot, it doesn't REQUIRE any user input until it's ready for the next reboot!
The issue, in short, is that when the tool is doing exactly what it is suppsed to then you cannot SEE it.
I've added a Sleep(); command on load, but even then when you just open it up to select your options (and therefore it's not going to be doing anything until you tell it to) it decides that running the Sleep(); command is more important than running the program. I have a section where I output information to a text box and I have it count down from 5, waiting a second then counting down 1 number, but all that happens is the program is invisible for 5 seconds, then pops open with the countdown fully completed.
Also, the draw time for the window is horrendous. I started this app in VC++E2010 and had to move to VC++E2008 becuase the 2010 version wouldn't compile with .NET 3.5; it was 4.0 or bust, and Windows 7 doesn't come with .NET 4 out of the box (and this tool is to basically set my computer back up from scratch every time I decide to format my computer - and I don't want to have to install .NET 4 before running the tool). In 2010 the app, once compiled and run, would open up all at once (you know how W7 will have that kind of "expanding" animation it does, where the app kind of fades into existence?), but in 2008 the outline appears and you can see all of the elements (text boxes, check boxes, radio buttons, buttons, progress bar and all that) pop on one after another. It's quick, yes, but in 2010 it was instantaneous and happened in the split second before the app showed its window.
Phew, I'm almost at an end here, just a bit longer!
Basically, I'm hoping someone has some experience with these issues. Most important is I'd like to find a way to get the program to fully initialize (and draw) before proceeding with reckless abandon and plowing through the code.
And if someone knows WHY the window doesn't draw as nicely as it did for the 2010 version and knows how to set the options in 2008 to make it match, that would be super!
I'm not holding my breath, but there are a lot of really smart and really helpful people who still read these forums so I feel it's a better gamble than posting on a MSDN forum and having people tell me to RTFM. (I don't HAVE a ******* manual to read! And Microsoft isn't known for writing clear, easy-to-follow instructions anyways!)
Thanks, all!
The operation is as such: The program is required to load up with Windows as it is designed to automatically install programs, set registry entries, and do all of the Windows Updates (automatic updates is too passive, need something that aggressively downloads and installs updates until they're all done).
The ISSUE is this: When the program loads up, it is SO gung-ho to just pick up and start going on its next task (or continue on with updates, whichever is the case) that it doesn't even bother to take the time to draw its own window before it starts doing all its work. What ends up happening is that it will run as if it's in the background (can see in Task Manager, but not the taskbar... not right away) until it's finished doing the grunt work; when it finally slows down enough to allow user interaction THEN it will draw the window. But because it's on automatic on reboot, it doesn't REQUIRE any user input until it's ready for the next reboot!
The issue, in short, is that when the tool is doing exactly what it is suppsed to then you cannot SEE it.
I've added a Sleep(); command on load, but even then when you just open it up to select your options (and therefore it's not going to be doing anything until you tell it to) it decides that running the Sleep(); command is more important than running the program. I have a section where I output information to a text box and I have it count down from 5, waiting a second then counting down 1 number, but all that happens is the program is invisible for 5 seconds, then pops open with the countdown fully completed.
Also, the draw time for the window is horrendous. I started this app in VC++E2010 and had to move to VC++E2008 becuase the 2010 version wouldn't compile with .NET 3.5; it was 4.0 or bust, and Windows 7 doesn't come with .NET 4 out of the box (and this tool is to basically set my computer back up from scratch every time I decide to format my computer - and I don't want to have to install .NET 4 before running the tool). In 2010 the app, once compiled and run, would open up all at once (you know how W7 will have that kind of "expanding" animation it does, where the app kind of fades into existence?), but in 2008 the outline appears and you can see all of the elements (text boxes, check boxes, radio buttons, buttons, progress bar and all that) pop on one after another. It's quick, yes, but in 2010 it was instantaneous and happened in the split second before the app showed its window.
Phew, I'm almost at an end here, just a bit longer!
Basically, I'm hoping someone has some experience with these issues. Most important is I'd like to find a way to get the program to fully initialize (and draw) before proceeding with reckless abandon and plowing through the code.
And if someone knows WHY the window doesn't draw as nicely as it did for the 2010 version and knows how to set the options in 2008 to make it match, that would be super!
I'm not holding my breath, but there are a lot of really smart and really helpful people who still read these forums so I feel it's a better gamble than posting on a MSDN forum and having people tell me to RTFM. (I don't HAVE a ******* manual to read! And Microsoft isn't known for writing clear, easy-to-follow instructions anyways!)
Thanks, all!