>> Could you show me how to load a Visual C++ program run at start up
Depends on how you define startup. On Windows NT and greater systems, NT Services will be started before any user logs onto the machine. Putting a file in a users startup folder will not accomplish the same result.
Hey u asked it in VC++........
so i think u want to programmatically load your prog in StartUp
one trick is what palbano suggested to U.
Other is, You can add your application file (.EXE with args) in registry key.
The key is HKCU/SoftWare/Microsoft/Windows/Current Version/Run.
Add your app path in this key.
So that your app will run every time a user logs on.
If u want the app to run for all users including the default one, then add the Registry key to HKEY_LOCAL_MACHINE (HKLM) instead of HKEY_CURRENT_USER.
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.