Click here to Skip to main content
16,010,876 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can i chk the file is readonly or not? Pin
Michael Schubert3-Sep-09 2:07
Michael Schubert3-Sep-09 2:07 
GeneralRe: How can i chk the file is readonly or not? Pin
Richard MacCutchan3-Sep-09 2:08
mveRichard MacCutchan3-Sep-09 2:08 
GeneralRe: How can i chk the file is readonly or not? Pin
Le@rner3-Sep-09 2:42
Le@rner3-Sep-09 2:42 
QuestionAssociating an extension to a MFC application - advanced Pin
BadJerry3-Sep-09 1:17
BadJerry3-Sep-09 1:17 
AnswerRe: Associating an extension to a MFC application - advanced Pin
Richard MacCutchan3-Sep-09 2:15
mveRichard MacCutchan3-Sep-09 2:15 
GeneralRe: Associating an extension to a MFC application - advanced Pin
BadJerry3-Sep-09 2:47
BadJerry3-Sep-09 2:47 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Richard MacCutchan3-Sep-09 23:46
mveRichard MacCutchan3-Sep-09 23:46 
AnswerRe: Associating an extension to a MFC application - advanced Pin
Iain Clarke, Warrior Programmer3-Sep-09 3:49
Iain Clarke, Warrior Programmer3-Sep-09 3:49 
As I see it, you have two issues...

1/ You want a website, with files of some custome format (call it fwibble.badjerry). In the same way as a (eg) pdf, the browser will run an external application - badjerry.exe, or acrobatreader.exe.

2/ You only ever want one of these programs running, even if they click on multiple files.


I hope that's a reasonable summary.

1/ Is a non issue - use RegisterShellFileType as normal. Whether the file comes from a website, via a temp directory, or it comes from the users My Dcuments directory is irrelevant.

2/ Is marginally harder, but there are several erticles on codeproject dealing with single instance applications, and their headaches. An article I've recently used to good effect was:
Limiting an application to a single Instance - the MFC way[^].

I did find a bug with huge impact but a simple fix - look at my comment at the end of the article. Other than that, it was a joy to use. Just a daft error.

Enjoy,

Iain.

I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

GeneralRe: Associating an extension to a MFC application - advanced Pin
BadJerry3-Sep-09 4:11
BadJerry3-Sep-09 4:11 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Iain Clarke, Warrior Programmer3-Sep-09 4:28
Iain Clarke, Warrior Programmer3-Sep-09 4:28 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Michael Schubert3-Sep-09 5:04
Michael Schubert3-Sep-09 5:04 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Iain Clarke, Warrior Programmer3-Sep-09 8:54
Iain Clarke, Warrior Programmer3-Sep-09 8:54 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Michael Schubert3-Sep-09 10:48
Michael Schubert3-Sep-09 10:48 
QuestionHard Disk Internal Test Pin
Abinash Mohanty2-Sep-09 22:44
Abinash Mohanty2-Sep-09 22:44 
AnswerRe: Hard Disk Internal Test Pin
Stuart Dootson2-Sep-09 23:35
professionalStuart Dootson2-Sep-09 23:35 
QuestionRe: Hard Disk Internal Test Pin
David Crow3-Sep-09 2:35
David Crow3-Sep-09 2:35 
AnswerRe: Hard Disk Internal Test Pin
Hamid_RT3-Sep-09 3:36
Hamid_RT3-Sep-09 3:36 
QuestionIsAppThemed returns FALSE, should return TRUE Pin
andrew_dk2-Sep-09 22:39
andrew_dk2-Sep-09 22:39 
AnswerRe: IsAppThemed returns FALSE, should return TRUE Pin
Moak2-Sep-09 23:19
Moak2-Sep-09 23:19 
GeneralRe: IsAppThemed returns FALSE, should return TRUE Pin
andrew_dk3-Sep-09 8:33
andrew_dk3-Sep-09 8:33 
QuestionRe: IsAppThemed returns FALSE, should return TRUE Pin
Randor 3-Sep-09 10:09
professional Randor 3-Sep-09 10:09 
Questioncompile error_2 Pin
programmer2022-Sep-09 22:12
programmer2022-Sep-09 22:12 
AnswerRe: compile error_2 Pin
Cedric Moonen2-Sep-09 22:29
Cedric Moonen2-Sep-09 22:29 
GeneralRe: compile error_2 Pin
programmer2023-Sep-09 1:07
programmer2023-Sep-09 1:07 
AnswerRe: compile error_2 Pin
Nuri Ismail2-Sep-09 22:30
Nuri Ismail2-Sep-09 22:30 

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.