Click here to Skip to main content
15,902,032 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp... Pin
John Cruz20-Feb-02 19:37
John Cruz20-Feb-02 19:37 
GeneralRe: Help... Pin
Paul M Watt20-Feb-02 19:51
mentorPaul M Watt20-Feb-02 19:51 
GeneralRe: Help... Pin
Nish Nishant20-Feb-02 19:47
sitebuilderNish Nishant20-Feb-02 19:47 
GeneralRe: Help... Pin
John Cruz20-Feb-02 22:35
John Cruz20-Feb-02 22:35 
GeneralDouble-clicking files to open program Pin
Coremn20-Feb-02 17:06
Coremn20-Feb-02 17:06 
GeneralRe: Double-clicking files to open program Pin
Nish Nishant20-Feb-02 18:36
sitebuilderNish Nishant20-Feb-02 18:36 
GeneralRe: Double-clicking files to open program Pin
Coremn20-Feb-02 18:52
Coremn20-Feb-02 18:52 
GeneralRe: Double-clicking files to open program Pin
Nish Nishant20-Feb-02 19:11
sitebuilderNish Nishant20-Feb-02 19:11 
Coremn wrote:
I have already done that. The program starts but I dont know how to get the file name that started the program. I need this to then display the file.

The command string should be something like :-
%SystemRoot%\system32\NOTEPAD.EXE %1

Now you get your filename as the command line argument

Nish

My most recent CP article :-

A newbie's elementary guide to spawning processes

www.busterboy.org
GeneralRe: Double-clicking files to open program Pin
Mazdak20-Feb-02 19:01
Mazdak20-Feb-02 19:01 
GeneralRe: Double-clicking files to open program Pin
Coremn20-Feb-02 19:22
Coremn20-Feb-02 19:22 
GeneralInexpensive Relational Database Pin
Phil F20-Feb-02 15:47
Phil F20-Feb-02 15:47 
GeneralRe: Inexpensive Relational Database Pin
Andres Manggini20-Feb-02 15:58
Andres Manggini20-Feb-02 15:58 
GeneralRe: Inexpensive Relational Database Pin
Phil F21-Feb-02 3:28
Phil F21-Feb-02 3:28 
GeneralRe: Inexpensive Relational Database Pin
Jon Sagara20-Feb-02 16:05
Jon Sagara20-Feb-02 16:05 
GeneralRe: Inexpensive Relational Database Pin
Christopher Lord20-Feb-02 23:40
Christopher Lord20-Feb-02 23:40 
GeneralRe: Inexpensive Relational Database Pin
Joel Lucsy21-Feb-02 3:17
Joel Lucsy21-Feb-02 3:17 
GeneralRe: Inexpensive Relational Database Pin
Steen Krogsgaard21-Feb-02 4:41
Steen Krogsgaard21-Feb-02 4:41 
GeneralRe: Inexpensive Relational Database Pin
Joel Lucsy21-Feb-02 6:25
Joel Lucsy21-Feb-02 6:25 
GeneralRe: Inexpensive Relational Database Pin
Phil F21-Feb-02 3:29
Phil F21-Feb-02 3:29 
GeneralCHtmlView ignoring OnChar() Pin
Romeozulu20-Feb-02 15:01
Romeozulu20-Feb-02 15:01 
GeneralRebuilding the msvc .clw file Pin
Simon Walton20-Feb-02 14:02
Simon Walton20-Feb-02 14:02 
GeneralRe: Rebuilding the msvc .clw file Pin
Christian Graus20-Feb-02 14:08
protectorChristian Graus20-Feb-02 14:08 
GeneralRe: Rebuilding the msvc .clw file Pin
Nish Nishant20-Feb-02 16:33
sitebuilderNish Nishant20-Feb-02 16:33 
GeneralRe: Rebuilding the msvc .clw file Pin
Rüpel20-Feb-02 21:18
Rüpel20-Feb-02 21:18 
GeneralRe: Rebuilding the msvc .clw file Pin
Nish Nishant20-Feb-02 22:29
sitebuilderNish Nishant20-Feb-02 22:29 

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.