Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question about run at start up Pin
Mazdak14-Jun-03 20:01
Mazdak14-Jun-03 20:01 
GeneralRe: Question about run at start up Pin
Nicolas Bonamy14-Jun-03 20:30
Nicolas Bonamy14-Jun-03 20:30 
GeneralRe: Question about run at start up Pin
Mazdak14-Jun-03 20:54
Mazdak14-Jun-03 20:54 
GeneralRe: Question about run at start up Pin
Ryan Binns14-Jun-03 22:26
Ryan Binns14-Jun-03 22:26 
GeneralRe: Question about run at start up Pin
Mazdak14-Jun-03 22:56
Mazdak14-Jun-03 22:56 
GeneralRe: Question about run at start up Pin
Ryan Binns15-Jun-03 2:59
Ryan Binns15-Jun-03 2:59 
GeneralRe: Question about run at start up Pin
Anonymous15-Jun-03 0:33
Anonymous15-Jun-03 0:33 
GeneralRe: Question about run at start up Pin
Ryan Binns15-Jun-03 3:01
Ryan Binns15-Jun-03 3:01 
Anonymous wrote:
What happend if user want to run by him/herself after start up.Then he/she can not run the program because that key does not exist.

You didn't specify that before Poke tongue | ;-P

I would still do the same thing, but specify some sort of parameter ("/startup" comes to mind) on the command line when run from the registry Run key. If this parameter is not present, then you can assume that the user ran it from a shortcut, and just run as usual. If the parameter is present, then you can assume it was run from the registry, and then do the operation I suggested before. I've written a couple of programs that do this and it works beautifully.

Ryan

Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)

Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

GeneralRe: Question about run at start up Pin
Mazdak15-Jun-03 7:20
Mazdak15-Jun-03 7:20 
GeneralRe: Question about run at start up Pin
Ryan Binns15-Jun-03 14:52
Ryan Binns15-Jun-03 14:52 
GeneralRe: Question about run at start up Pin
Mazdak15-Jun-03 20:56
Mazdak15-Jun-03 20:56 
Questionhow to toggle desktop Pin
jerryage14-Jun-03 15:38
jerryage14-Jun-03 15:38 
GeneralCGridCtrl Add & Delete UI Pin
Sam Hobbs14-Jun-03 14:29
Sam Hobbs14-Jun-03 14:29 
QuestionDeclaring Class function error? Pin
Aidman14-Jun-03 13:37
Aidman14-Jun-03 13:37 
AnswerRe: Declaring Class function error? Pin
Anonymous14-Jun-03 13:57
Anonymous14-Jun-03 13:57 
GeneralRe: Declaring Class function error? Pin
Aidman14-Jun-03 14:54
Aidman14-Jun-03 14:54 
GeneralCComboBoxEx and some kind of draw Pin
Deian14-Jun-03 12:12
Deian14-Jun-03 12:12 
GeneralRe: CComboBoxEx and some kind of draw Pin
Michael Dunn14-Jun-03 14:03
sitebuilderMichael Dunn14-Jun-03 14:03 
Generalinvisible window Pin
Steve L.14-Jun-03 9:55
Steve L.14-Jun-03 9:55 
GeneralRe: invisible window Pin
Michael Dunn14-Jun-03 10:21
sitebuilderMichael Dunn14-Jun-03 10:21 
GeneralMRU problem Pin
mariuszpopiolek14-Jun-03 8:12
mariuszpopiolek14-Jun-03 8:12 
GeneralRe: MRU problem Pin
Ryan Binns15-Jun-03 3:23
Ryan Binns15-Jun-03 3:23 
GeneralControl creation issues. Pin
jales14-Jun-03 7:41
jales14-Jun-03 7:41 
GeneralRe: Control creation issues. Pin
Gary R. Wheeler15-Jun-03 3:23
Gary R. Wheeler15-Jun-03 3:23 
GeneralRe: Control creation issues. Pin
jales15-Jun-03 22:25
jales15-Jun-03 22:25 

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.