Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help me with displaying capture image Pin
SimCom28-Sep-05 2:37
SimCom28-Sep-05 2:37 
GeneralRe: Help me with displaying capture image Pin
Cedric Moonen28-Sep-05 2:49
Cedric Moonen28-Sep-05 2:49 
GeneralRe: Help me with displaying capture image Pin
SimCom28-Sep-05 4:35
SimCom28-Sep-05 4:35 
Questionlaunching application from html page Pin
vyjesh28-Sep-05 2:03
vyjesh28-Sep-05 2:03 
AnswerRe: launching application from html page Pin
Mircea Puiu28-Sep-05 2:33
Mircea Puiu28-Sep-05 2:33 
GeneralRe: launching application from html page Pin
mikanu28-Sep-05 5:24
mikanu28-Sep-05 5:24 
GeneralRe: launching application from html page Pin
vyjesh30-Sep-05 3:01
vyjesh30-Sep-05 3:01 
AnswerRe: launching application from html page Pin
mikanu30-Sep-05 6:19
mikanu30-Sep-05 6:19 
Hi vyjesh,

I think I understand now. What you need to do actually is to register your won URL protocol. Basically, when you type something like mailto: or file: windows looks up the URL protocol scheme and transfers the handle to the application registered for that protocol.

In windows XP it's pretty easy to create and register your own protocol. You would have to add a key in the registry under HKEY_CLASSES_ROOT\ and give it the name of the URL protocol you'd like registered. Let's say myproto. So you'd vahe something like HKEY_CLASSES_ROOT\myproto. Then on the default value for that key type: "URL: My_Name Protocol". Also, add a new value to this key and call it URL Protocol. Then add a new key to the myproto and call it shell. You don't need to make any cahnges to this key. Then under it, add a new key and call it open. Also, no changes here. Finally, under open add a new key and call it command. Now, change the default value for this key to: "C:\Windows\notepad.exe" %1. This will make your protocol launch notepad! Pretty cool huh?!

So your registry should be modified as foolows:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\myproto]
@="URL: Mikanu Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\myproto\shell]

[HKEY_CLASSES_ROOT\myproto\shell\open]

[HKEY_CLASSES_ROOT\myproto\shell\open\command]
@="\"C:\\Windows\\notepad.exe\" %1"


Then you can try this link: myproto:test.txt and it should lauch notepad and attempt to open a text file, called test.txt... Wink | ;)

For further reading on URL schemes check this out, RFC 1738.
QuestionClipboard issue. Pin
Abyss28-Sep-05 1:41
Abyss28-Sep-05 1:41 
AnswerRe: Clipboard issue. Pin
S Douglas28-Sep-05 23:33
professionalS Douglas28-Sep-05 23:33 
Questionwant to use a CDialogBox in MFC Pin
vikas amin28-Sep-05 1:37
vikas amin28-Sep-05 1:37 
AnswerRe: want to use a CDialogBox in MFC Pin
toxcct28-Sep-05 1:49
toxcct28-Sep-05 1:49 
GeneralRe: want to use a CDialogBox in MFC Pin
vikas amin28-Sep-05 3:49
vikas amin28-Sep-05 3:49 
AnswerRe: want to use a CDialogBox in MFC Pin
S Douglas28-Sep-05 23:45
professionalS Douglas28-Sep-05 23:45 
QuestionFinding the current active button... Pin
u6ik28-Sep-05 1:35
u6ik28-Sep-05 1:35 
AnswerRe: Finding the current active button... Pin
fat_boy28-Sep-05 2:01
fat_boy28-Sep-05 2:01 
AnswerRe: Finding the current active button... Pin
Cedric Moonen28-Sep-05 1:59
Cedric Moonen28-Sep-05 1:59 
AnswerRe: Finding the current active button... Pin
u6ik28-Sep-05 2:27
u6ik28-Sep-05 2:27 
QuestionRun batch-job from MFC-App without command-window Pin
Snore28-Sep-05 1:25
Snore28-Sep-05 1:25 
AnswerRe: Run batch-job from MFC-App without command-window Pin
Mircea Puiu28-Sep-05 2:36
Mircea Puiu28-Sep-05 2:36 
AnswerRe: Run batch-job from MFC-App without command-window Pin
David Crow28-Sep-05 3:04
David Crow28-Sep-05 3:04 
AnswerRe: Run batch-job from MFC-App without command-window Pin
kakan28-Sep-05 3:45
professionalkakan28-Sep-05 3:45 
GeneralRe: Run batch-job from MFC-App without command-window Pin
Snore28-Sep-05 21:50
Snore28-Sep-05 21:50 
QuestionDeriving a class Pin
FarPointer28-Sep-05 1:19
FarPointer28-Sep-05 1:19 
AnswerRe: Deriving a class Pin
Cedric Moonen28-Sep-05 1:25
Cedric Moonen28-Sep-05 1: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.