I have a dialog-based app which runs loads at windows startup, but problem is i don't want to showing up this dialog at every startup so i need it to start hidden.Plz help me
Printable View
I have a dialog-based app which runs loads at windows startup, but problem is i don't want to showing up this dialog at every startup so i need it to start hidden.Plz help me
There are many possibilities for doing that.
What exactly do you want to do?
Launching an app with putting it in the autostart folder gives you the possibilty to start it minimized (use "properties" context menu entry). But I'm not sure if this works for dialog based apps (which are not intended for running without the (modal) dialog shown).
So you can use a non-dlg app.
Maybe you can run a GUI-less message loop before the modal dialog is called (it's usually inside the InitApplication method of your app).
With regards
Programartist
Have a look here: How to start your dialog application in hidden mode?
Cheers,
Laitinen
What do you mean? If you start it from the desktop you want it to be visible? You might add command line arguments to your app, and use them when starting from desktop. Search for command line arguments.
make ur app accepts command line
when u set up the registry entry to start the app on startup , add a command line on the
registry key
You should get used to check the many great FAQs here at CodeGuru. If you had done that you would have found this:
MFC General: How to process command line arguments in a MFC application?
Laitinen