win32, registry and c++.
how can i let my program add someting into the registry, like adding something into the "HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/run/" folder so my program starts when you log in.
Look up the registry functions on MSDN, like RegOpenKeyEx, RegQueryValueEx, etc.
---visit #directxdev on afternet <- not just for directx, despite the name
There is also a class called CRegKey that lets you manipulate the registry too. Look it up on MSDN. Don''t worry, it''s not MFC.
/*=========================================*/
/* Chem0sh */
/* Lead Software Engineer & Tech Support */
/* http://www.eFaces.biz */
/*=========================================*/
/*=========================================*/
/* Chem0sh */
/* Lead Software Engineer & Tech Support */
/* http://www.eFaces.biz */
/*=========================================*/
/*=========================================// Chem0sh// Lead Software Engineer & Tech Support// http://www.eFaces.biz=========================================*/
P.S. to use CRegKey, you''ll need to include atlbase.h.
/*=========================================// Chem0sh// Lead Software Engineer & Tech Support// http://www.eFaces.biz=========================================*/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement