C++ startup methods

Well guys I've given a laptop to some elderly people for free "there poor",and I wrote an app that gets the microsoft updates automaticly for them,there was an issue with auto update,but I was trying to make the program start using the registry.

Seems much more pro to me and I don't fully understand using the registry method in a application.

Could some of you guys post a simple working registry code that works.

I tried google and msdn,but I either don't understand it or the code example found dont work.

I understand that most people think registry things are mostly malicious but my case is not.Would be greatly appreciated.
I understand that most people think the registry things are is mostly malicious


No but seriously, you don't need to handle the registry from your program if you just want to put it into autostart - windows comes with programs to do that.
Well I kinda figured that was the answer I would recieve.

I work on other things,and I've always skipped around when it came to auto starting with the registry,figured I would try to learn alittle about it.

But I sense I came to the wrong place so thankyou for your time.

and I like what you did above with the quoted line.

not all poeple are writting viruses you know
It's not about viruses or no viruses - the registry itself is the problem. It shouldn't even exist. I don't think there are many newer programs that actually use it.

If you want to add something to autostart, as I said, you can do that with programs that already exist.


That being said, if you're interested you can read more about that on http://msdn.com - accessing the registry itself shouldn't be a problem if you have the permissions.
So you say most programs dont use the registry,well what are some other methods of starting a program other than the startup folder and bat files?


I'll avoid the registry since you say there are other ways.
That's not what I said. I don't even know if newer windows versions still have a startup batch, so if you really want a program to run on startup you'll probably have to do it through some registry entry. What I'm saying is that there's not much a point in learning about it because the registry is pretty much just an artifact of when people thought it was a good idea.
Hey I fixed my issue,msdn and google,I wrote out my own code to test it,and it works fine now.


To bad you always have to rely on google for everything.


Thankyou though
Last edited on
Topic archived. No new replies allowed.