Click here to Skip to main content
15,877,482 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: _argv[] proglems Pin
David Crow21-Sep-06 8:47
David Crow21-Sep-06 8:47 
GeneralRe: _argv[] proglems Pin
hlmechanic21-Sep-06 8:57
hlmechanic21-Sep-06 8:57 
GeneralRe: _argv[] proglems Pin
David Crow21-Sep-06 9:15
David Crow21-Sep-06 9:15 
GeneralRe: _argv[] proglems Pin
hlmechanic21-Sep-06 9:55
hlmechanic21-Sep-06 9:55 
GeneralRe: _argv[] proglems Pin
David Crow21-Sep-06 10:09
David Crow21-Sep-06 10:09 
GeneralRe: _argv[] proglems Pin
hlmechanic21-Sep-06 12:09
hlmechanic21-Sep-06 12:09 
GeneralRe: _argv[] proglems Pin
David Crow22-Sep-06 3:02
David Crow22-Sep-06 3:02 
AnswerRe: _argv[] proglems Pin
hlmechanic21-Sep-06 17:01
hlmechanic21-Sep-06 17:01 
I have found GetCommandLine() wich seems to be promising. When H:\copy of folder\file.syx is draged and droped onto H:\copy of folder\prog.exe then GetCommndLine() returns "H:\copy of folder\prog.exe" ":\copy of folder\file.syx" (including quote marks). If the same thing is done in H:\folder then "H:\copy of folder\prog.exe" H:\copy of folder\file.syx is given (note change in quote marks). I think I can get the filename from this.

I found this from the questions and answers at the end of the folowing article
Managing argc and argv[] with STL in a simple way

specal thanks to DavidCrow for trying to educate me.
QuestionRe: _argv[] proglems Pin
David Crow22-Sep-06 3:16
David Crow22-Sep-06 3:16 
AnswerRe: _argv[] proglems Pin
hlmechanic22-Sep-06 4:06
hlmechanic22-Sep-06 4:06 
QuestionRe: _argv[] proglems Pin
David Crow22-Sep-06 5:21
David Crow22-Sep-06 5:21 
AnswerRe: _argv[] proglems Pin
hlmechanic22-Sep-06 5:42
hlmechanic22-Sep-06 5:42 
Questionwin32 API - How to use a button Pin
gunner_uk200021-Sep-06 6:13
gunner_uk200021-Sep-06 6:13 
AnswerRe: win32 API - How to use a button Pin
David Crow21-Sep-06 6:56
David Crow21-Sep-06 6:56 
QuestionRe: win32 API - How to use a button Pin
gunner_uk200021-Sep-06 23:23
gunner_uk200021-Sep-06 23:23 
AnswerRe: win32 API - How to use a button [modified] Pin
David Crow22-Sep-06 3:01
David Crow22-Sep-06 3:01 
AnswerRe: win32 API - How to use a button Pin
susiriss22-Sep-06 3:25
susiriss22-Sep-06 3:25 
QuestionShell open with Pin
Mohammad A Gdeisat21-Sep-06 6:13
Mohammad A Gdeisat21-Sep-06 6:13 
Questionarray input using edit box Pin
Cyclone0221-Sep-06 5:27
Cyclone0221-Sep-06 5:27 
AnswerRe: array input using edit box Pin
Zac Howland21-Sep-06 5:39
Zac Howland21-Sep-06 5:39 
AnswerRe: array input using edit box Pin
David Crow21-Sep-06 6:59
David Crow21-Sep-06 6:59 
GeneralRe: array input using edit box Pin
Cyclone0221-Sep-06 7:15
Cyclone0221-Sep-06 7:15 
GeneralRe: array input using edit box Pin
David Crow21-Sep-06 7:28
David Crow21-Sep-06 7:28 
GeneralRe: array input using edit box Pin
Cyclone0222-Sep-06 5:59
Cyclone0222-Sep-06 5:59 
QuestionCall Windows Explorer after save files Pin
Max++21-Sep-06 5:19
Max++21-Sep-06 5:19 

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.