Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWin32SDK Printer Pin
Rolandjr11-May-05 0:37
Rolandjr11-May-05 0:37 
GeneralRe: Win32SDK Printer Pin
Anonymous11-May-05 1:01
Anonymous11-May-05 1:01 
GeneralStart program hidden on startup Pin
ddmcr11-May-05 0:34
ddmcr11-May-05 0:34 
GeneralRe: Start program hidden on startup Pin
ThatsAlok11-May-05 0:40
ThatsAlok11-May-05 0:40 
GeneralRe: Start program hidden on startup Pin
ddmcr11-May-05 0:50
ddmcr11-May-05 0:50 
GeneralRe: Start program hidden on startup Pin
ThatsAlok11-May-05 1:01
ThatsAlok11-May-05 1:01 
GeneralRe: Start program hidden on startup Pin
ddmcr11-May-05 1:05
ddmcr11-May-05 1:05 
GeneralRe: Start program hidden on startup Pin
ThatsAlok11-May-05 1:29
ThatsAlok11-May-05 1:29 
Giorgi Moniava wrote:
Yes right !

Now you can implement same by using this logic,I Believe you starting you Application at windows startup using key stored in Registry location RUN.

Now to distinguish wheather the USer is Starting the Program by Clicking over it or Windows is Starting it at start up, you just provide a command line argument to that reg Location i.e. store application path as

c:\\your_app_path\\app.exe -hidden

Now When ever Windows start your application at startup offcourse, you will get -hidden as commandline argument, now you just have to parse the command line [use GetCommandLine() : to retrieve command line arguments]to hide or unhide your application.

There can be other solution also, It's upto you to choose better one.



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


cheers,
Alok Gupta
GeneralRe: Start program hidden on startup Pin
ddmcr11-May-05 1:43
ddmcr11-May-05 1:43 
GeneralRe: Start program hidden on startup Pin
ThatsAlok11-May-05 1:50
ThatsAlok11-May-05 1:50 
GeneralRe: Start program hidden on startup Pin
ddmcr11-May-05 2:00
ddmcr11-May-05 2:00 
GeneralRe: Start program hidden on startup Pin
ThatsAlok11-May-05 2:02
ThatsAlok11-May-05 2:02 
GeneralStack Overflow Pin
sweep12311-May-05 0:18
sweep12311-May-05 0:18 
GeneralRe: Stack Overflow Pin
toxcct11-May-05 1:05
toxcct11-May-05 1:05 
GeneralRe: Stack Overflow Pin
sweep12311-May-05 1:09
sweep12311-May-05 1:09 
GeneralRe: Stack Overflow Pin
S. Senthil Kumar11-May-05 1:11
S. Senthil Kumar11-May-05 1:11 
GeneralRe: Stack Overflow Pin
David Crow11-May-05 3:35
David Crow11-May-05 3:35 
GeneralRe: Stack Overflow Pin
BlackDice11-May-05 4:57
BlackDice11-May-05 4:57 
GeneralExpiration date Pin
Adithya HA10-May-05 23:50
Adithya HA10-May-05 23:50 
GeneralRe: Expiration date Pin
ThatsAlok11-May-05 0:51
ThatsAlok11-May-05 0:51 
GeneralOnChar handler for an Edit Control Pin
laiju10-May-05 23:19
laiju10-May-05 23:19 
GeneralRe: OnChar handler for an Edit Control Pin
«_Superman_»11-May-05 0:03
professional«_Superman_»11-May-05 0:03 
GeneralRe: OnChar handler for an Edit Control Pin
David Crow11-May-05 3:37
David Crow11-May-05 3:37 
GeneralRe: OnChar handler for an Edit Control Pin
laiju11-May-05 3:50
laiju11-May-05 3:50 
GeneralRe: OnChar handler for an Edit Control Pin
David Crow11-May-05 4:17
David Crow11-May-05 4:17 

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.