Click here to Skip to main content
15,915,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionis application open? Pin
pnpfriend7-Jun-04 10:00
pnpfriend7-Jun-04 10:00 
AnswerRe: is application open? Pin
David Crow7-Jun-04 10:48
David Crow7-Jun-04 10:48 
AnswerRe: is application open? Pin
Archer2827-Jun-04 13:21
Archer2827-Jun-04 13:21 
GeneralCArray Pin
brdavid7-Jun-04 9:56
brdavid7-Jun-04 9:56 
GeneralRe: CArray Pin
David Crow7-Jun-04 10:33
David Crow7-Jun-04 10:33 
GeneralRe: CArray Pin
brdavid7-Jun-04 11:41
brdavid7-Jun-04 11:41 
Generalselect a single file right click menu Pin
skoizumi291107-Jun-04 9:20
sussskoizumi291107-Jun-04 9:20 
GeneralRe: select a single file right click menu Pin
David Crow7-Jun-04 10:07
David Crow7-Jun-04 10:07 
Add a key to HKEY_CLASSES_ROOT\exefile\shell. Under that key, add another key that will show up in the context menu (e.g., Process). Under that key, add a key named command. Change the (Default) value for the command key to the path\name of your application. If your application will require the name of the file that was clicked on, which it most likely will, supply %1 in double quotes.

So if I wanted Process to show up when I right-click an exe file, my registry key would look like:

HKEY_CLASSES_ROOT\exefile\shell\Process\command

For demo purposes, the value for (Default) was calc.exe. Now when I right-click a file and select Process from the context menu, the Windows calculator comes up!


"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


GeneralRe: select a single file right click menu Pin
skoizumi291107-Jun-04 10:20
sussskoizumi291107-Jun-04 10:20 
GeneralRe: select a single file right click menu Pin
David Crow11-Jun-04 2:04
David Crow11-Jun-04 2:04 
GeneralRe: select a single file right click menu Pin
skoizumi2911013-Jun-04 15:34
sussskoizumi2911013-Jun-04 15:34 
GeneralRe: select a single file right click menu Pin
David Crow14-Jun-04 2:32
David Crow14-Jun-04 2:32 
GeneralCreateThread and Hooks Pin
Spiritofamerica7-Jun-04 8:29
Spiritofamerica7-Jun-04 8:29 
GeneralRe: CreateThread and Hooks Pin
David Crow7-Jun-04 8:59
David Crow7-Jun-04 8:59 
GeneralRe: CreateThread and Hooks Pin
Blake V. Miller7-Jun-04 15:34
Blake V. Miller7-Jun-04 15:34 
GeneralRe: CreateThread and Hooks Pin
Ryan Binns7-Jun-04 18:22
Ryan Binns7-Jun-04 18:22 
GeneralRe: CreateThread and Hooks Pin
Spiritofamerica7-Jun-04 19:48
Spiritofamerica7-Jun-04 19:48 
GeneralHtml Context Help in CView Pin
MikeF_7-Jun-04 7:06
MikeF_7-Jun-04 7:06 
GeneralExpert's opinions pz Pin
peachieboy7-Jun-04 7:06
peachieboy7-Jun-04 7:06 
GeneralRe: Expert's opinions pz Pin
David Crow7-Jun-04 7:14
David Crow7-Jun-04 7:14 
GeneralRe: Expert's opinions pz Pin
Henry miller7-Jun-04 10:00
Henry miller7-Jun-04 10:00 
GeneralClass Question Pin
Tom Wright7-Jun-04 7:01
Tom Wright7-Jun-04 7:01 
GeneralRe: Class Question Pin
David Crow7-Jun-04 7:11
David Crow7-Jun-04 7:11 
GeneralRe: Class Question Pin
Tom Wright7-Jun-04 7:25
Tom Wright7-Jun-04 7:25 
GeneralRe: Class Question Pin
David Crow7-Jun-04 7:43
David Crow7-Jun-04 7:43 

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.