how to start a program on start up

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.
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
Or you could put a copy of / link to your program in the user's startup path.
Last edited on
thank you m4ster

and mag how do i go about doing that
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.