Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Exiting an application Pin
sunit515-Oct-05 3:23
sunit515-Oct-05 3:23 
GeneralRe: Exiting an application Pin
sunit515-Oct-05 3:26
sunit515-Oct-05 3:26 
AnswerRe: Exiting an application Pin
ThatsAlok15-Oct-05 4:49
ThatsAlok15-Oct-05 4:49 
QuestionUsing CByteArray storing Image data into Database Pin
snprani15-Oct-05 2:37
snprani15-Oct-05 2:37 
QuestionWindows Startup Pin
extus15-Oct-05 1:00
extus15-Oct-05 1:00 
AnswerRe: Windows Startup Pin
ddmcr15-Oct-05 1:24
ddmcr15-Oct-05 1:24 
AnswerRe: Windows Startup Pin
Fired Fish15-Oct-05 1:29
Fired Fish15-Oct-05 1:29 
AnswerRe: Windows Startup Pin
ThatsAlok15-Oct-05 4:48
ThatsAlok15-Oct-05 4:48 
extus wrote:
i! Does anyone know how can i make my application starts when windows starts up, i mean using code not put the application in the startup folder!. I think i must use the registry but i m not sure! Thanks!

extus wrote:
i! Does anyone know how can i make my application starts when windows starts up, i mean using code not put the application in the startup folder!. I think i must use the registry but i m not sure! Thanks!


In continuation With Giorgi:-
there are two more place from where you can start your application at window startup:-
#1 already told bu Giorgi
#2 HKEY_CURRENT_USER
code:- (just One change to Giorgi code)
CRegKey key;
LONG status = key.Open(HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\CurrentVersion\\Run");

if(status==ERROR_SUCCESS)
{
  key.SetValue("Path of your program","Name of your program");
}


key.Close();

#3 Make entry in %windir%\startup



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
QuestionWhere can I input parameter in VC7 when I debugger? Pin
chenxiujie15-Oct-05 0:56
chenxiujie15-Oct-05 0:56 
AnswerRe: Where can I input parameter in VC7 when I debugger? Pin
Member 168985515-Oct-05 1:22
Member 168985515-Oct-05 1:22 
AnswerRe: Where can I input parameter in VC7 when I debugger? Pin
S. Senthil Kumar15-Oct-05 1:49
S. Senthil Kumar15-Oct-05 1:49 
GeneralRe: Where can I input parameter in VC7 when I debugger? Pin
chenxiujie15-Oct-05 2:07
chenxiujie15-Oct-05 2:07 
AnswerRe: Where can I input parameter in VC7 when I debugger? Pin
Fired Fish15-Oct-05 2:19
Fired Fish15-Oct-05 2:19 
Questionhow to create a DIB bitmap with a array Pin
daojinliu15-Oct-05 0:53
daojinliu15-Oct-05 0:53 
Questionprotected, public and private Pin
karmendra_js15-Oct-05 0:44
karmendra_js15-Oct-05 0:44 
AnswerRe: protected, public and private Pin
S. Senthil Kumar15-Oct-05 0:51
S. Senthil Kumar15-Oct-05 0:51 
AnswerRe: protected, public and private Pin
Gary R. Wheeler15-Oct-05 2:50
Gary R. Wheeler15-Oct-05 2:50 
AnswerRe: protected, public and private Pin
ThatsAlok15-Oct-05 4:53
ThatsAlok15-Oct-05 4:53 
QuestionInitial OnPaint Pin
Trollslayer15-Oct-05 0:43
mentorTrollslayer15-Oct-05 0:43 
AnswerRe: Initial OnPaint Pin
Prakash Nadar15-Oct-05 0:53
Prakash Nadar15-Oct-05 0:53 
GeneralRe: Initial OnPaint Pin
Trollslayer15-Oct-05 0:59
mentorTrollslayer15-Oct-05 0:59 
GeneralRe: Initial OnPaint Pin
Prakash Nadar15-Oct-05 6:24
Prakash Nadar15-Oct-05 6:24 
AnswerRe: Initial OnPaint Pin
S. Senthil Kumar15-Oct-05 1:02
S. Senthil Kumar15-Oct-05 1:02 
GeneralRe: Initial OnPaint Pin
Trollslayer15-Oct-05 1:16
mentorTrollslayer15-Oct-05 1:16 
AnswerRe: Initial OnPaint Pin
Tim Smith15-Oct-05 4:51
Tim Smith15-Oct-05 4:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.