| Smarty (5) | |||
Ok, I put ShellExecute in my code here:
And I compiled it and...over 50 notepads came up :( my computer lagged like crazy. So, where is the proper place to put it? (I had Dev C++ generate code for the window) Is this in the right place? I'm a rather new to C++, is this a question for the beginner forum? | |||
|
Last edited on
|
|||
| NwN (591) | |||
|
Hi there, Not too familiar with Dev C++ and it's GUI capabilities, but you definitely want to take the execute out of the while loop as such:
If not, the while loop keeps opening notepad until the GetMessage() function returns false. Hope that helps. All the best, NwN | |||
|
|
|||
| Smarty (5) | |||
OK, I moved it and it works perfectly:
| |||
|
Last edited on
|
|||
| NwN (591) | |
|
Supposedly in your main() function. Make sure you don't put it into a while loop or other control structure (if/else) though. If this would be a bad idea for a GUI application someone please do correct me. All the best, NwN | |
|
|
|