Click here to Skip to main content
15,848,407 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileDialog Pin
sarfaraznawaz23-May-11 20:16
sarfaraznawaz23-May-11 20:16 
GeneralRe: CFileDialog Pin
Chandrasekharan P23-May-11 20:29
Chandrasekharan P23-May-11 20:29 
GeneralRe: CFileDialog Pin
sarfaraznawaz25-May-11 20:33
sarfaraznawaz25-May-11 20:33 
AnswerRe: CFileDialog Pin
abhishek.biradar23-May-11 20:42
abhishek.biradar23-May-11 20:42 
QuestionRunning a c++ program Pin
tasumisra23-May-11 2:22
tasumisra23-May-11 2:22 
AnswerRe: Running a c++ program Pin
Richard MacCutchan23-May-11 2:30
mveRichard MacCutchan23-May-11 2:30 
GeneralRe: Running a c++ program Pin
tasumisra23-May-11 2:33
tasumisra23-May-11 2:33 
GeneralRe: Running a c++ program [modified] Pin
Legor23-May-11 2:45
Legor23-May-11 2:45 
You'll have to provide the name of the file as command line parameter.
For example lets consider the compiled executable is called TimeStamp.exe.

Execute the program from the command line (console): TimeStamp.exe c:\textfile.txt

As the name implies it, a command line parameter is passed from the command line.
In the code you've linked you can see how the parameter is accessed using the argv array.

modified on Monday, May 23, 2011 7:52 AM

GeneralRe: Running a c++ program Pin
tasumisra23-May-11 2:52
tasumisra23-May-11 2:52 
GeneralRe: Running a c++ program Pin
Legor23-May-11 3:40
Legor23-May-11 3:40 
GeneralRe: Running a c++ program Pin
Richard MacCutchan23-May-11 3:40
mveRichard MacCutchan23-May-11 3:40 
AnswerRe: Running a c++ program Pin
David Crow24-May-11 7:43
David Crow24-May-11 7:43 
Question64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen22-May-11 21:01
Maxwell Chen22-May-11 21:01 
QuestionRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
CPallini23-May-11 1:42
mveCPallini23-May-11 1:42 
AnswerRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen23-May-11 1:45
Maxwell Chen23-May-11 1:45 
GeneralRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
CPallini23-May-11 2:00
mveCPallini23-May-11 2:00 
GeneralRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen23-May-11 2:01
Maxwell Chen23-May-11 2:01 
QuestionRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
CPallini23-May-11 2:28
mveCPallini23-May-11 2:28 
AnswerRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen23-May-11 5:08
Maxwell Chen23-May-11 5:08 
GeneralRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
CPallini23-May-11 5:12
mveCPallini23-May-11 5:12 
GeneralRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen23-May-11 5:29
Maxwell Chen23-May-11 5:29 
QuestionRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
CPallini23-May-11 5:32
mveCPallini23-May-11 5:32 
AnswerRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen23-May-11 5:47
Maxwell Chen23-May-11 5:47 
GeneralRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
CPallini23-May-11 7:03
mveCPallini23-May-11 7:03 
GeneralRe: 64-bit strange issue, SetupDiEnumDeviceInfo Pin
Maxwell Chen23-May-11 7:07
Maxwell Chen23-May-11 7:07 

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.