hi,
anyone know how to make a certain visual C++ program load at startup. not only through startup folder but writing to registry?
how do i tackle something like this?
source code is appreciated...thanks
It's been a long time since I wrote a program that reads/writes to the registry, but if you look in the MSDN you'll find functions such as: RegOpenKey(), RegCloseKey(), RegCreateKey(), RegSetValue()...
For the hKey value use: "HKEY_LOCAL_MACHINE".
For the lpSubKey value use: "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run".
You need to open the key and get the handle, then use RegSetValue() to set your value (i.e. on the right side of the RegEdit window), then close the key.
InstallShield Express 4 has a gui for adding keys during the install, I have to believe that all these super-expensive install programs must. The Nullsoft free installer has the capability.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.