how to start a program on start up

Jun 14, 2010 at 4:38pm
I am new to programming and have just created a program that I am happy with. However I need help with knowing how to make it run when I bring up my main page right after i have logged in.
Jun 14, 2010 at 5:19pm
Is your program a keylogger? If you're using windows check RegOpenKeyEx and RegSetValueEx on MSDN.

Also take a look at this:

http://www.codeguru.com/cpp/w-p/system/registry/article.php/c5677/Run-At-Startup-Programmatically.htm
Last edited on Jun 14, 2010 at 5:21pm
Jun 14, 2010 at 6:08pm
Or you could put a copy of / link to your program in the user's startup path.
Last edited on Jun 14, 2010 at 6:08pm
Jun 14, 2010 at 7:43pm
thank you m4ster

and mag how do i go about doing that
Jun 14, 2010 at 8:57pm
For Windows just drag and drop your executable into the startup folder in the start menu Start>Programs>Startup.

Keep in mind though that most people hate to have superfluous code running when they didn't intend it to. Many (like me) check that folder from time to time and remove any entries we didn't put there purposefully.
Topic archived. No new replies allowed.