Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: On Dialog Box Pin
Chandrasekharan P25-Mar-08 19:56
Chandrasekharan P25-Mar-08 19:56 
AnswerRe: On Dialog Box Pin
Rajkumar R25-Mar-08 19:45
Rajkumar R25-Mar-08 19:45 
GeneralRe: On Dialog Box Pin
Chandrasekharan P25-Mar-08 20:25
Chandrasekharan P25-Mar-08 20:25 
GeneralRe: On Dialog Box [modified] Pin
Rajkumar R25-Mar-08 21:22
Rajkumar R25-Mar-08 21:22 
GeneralRe: On Dialog Box Pin
rp_suman25-Mar-08 19:55
rp_suman25-Mar-08 19:55 
GeneralRe: On Dialog Box Pin
Chandrasekharan P25-Mar-08 20:07
Chandrasekharan P25-Mar-08 20:07 
GeneralRedirection in command line "<" Pin
uusheikh25-Mar-08 17:30
uusheikh25-Mar-08 17:30 
GeneralRe: Redirection in command line "<" Pin
User 58385225-Mar-08 17:59
User 58385225-Mar-08 17:59 
uus831 wrote:
But, what happens when i do program1.exe < input.txt?


stdin is changed from the keyboard to input.txt

To read the data you can use anything that reads from stdin line scanf(), getch() etc


uus831 wrote:

Also, if i do program1.exe < input.txt, the argc in main() will only return 1, that is program1.exe. Why not 3? (for program1.exe, <, and input.txt)


Because the < input.txt is not an argument to your application, its an instruction to the os to modify what stdin points to
GeneralRe: Redirection in command line "&lt;" Pin
fefe.wyx25-Mar-08 18:21
fefe.wyx25-Mar-08 18:21 
GeneralRe: Redirection in command line "&lt;" Pin
uusheikh25-Mar-08 20:18
uusheikh25-Mar-08 20:18 
GeneralRe: Redirection in command line "&lt;" Pin
Maxwell Chen25-Mar-08 21:03
Maxwell Chen25-Mar-08 21:03 
GeneralRe: Redirection in command line "&lt;" Pin
uusheikh25-Mar-08 21:25
uusheikh25-Mar-08 21:25 
GeneralRe: Redirection in command line "&lt;" Pin
Maxwell Chen25-Mar-08 21:18
Maxwell Chen25-Mar-08 21:18 
GeneralRe: Redirection in command line "&lt;" Pin
David Crow26-Mar-08 4:10
David Crow26-Mar-08 4:10 
QuestionHow to insert a child form? Pin
TooShy2Talk25-Mar-08 16:48
TooShy2Talk25-Mar-08 16:48 
QuestionUsing CFileDialog? Pin
dipuks25-Mar-08 15:59
dipuks25-Mar-08 15:59 
AnswerRe: Using CFileDialog? Pin
David Crow25-Mar-08 16:11
David Crow25-Mar-08 16:11 
GeneralCompare and merge Pin
KirkNarine25-Mar-08 9:15
KirkNarine25-Mar-08 9:15 
GeneralRe: Compare and merge Pin
led mike25-Mar-08 10:14
led mike25-Mar-08 10:14 
AnswerRe: Compare and merge Pin
Maxwell Chen25-Mar-08 17:50
Maxwell Chen25-Mar-08 17:50 
QuestionMethod to get file path Pin
nvphap25-Mar-08 8:55
nvphap25-Mar-08 8:55 
GeneralRe: Method to get file path Pin
David Crow25-Mar-08 10:05
David Crow25-Mar-08 10:05 
GeneralRe: Method to get file path Pin
led mike25-Mar-08 10:12
led mike25-Mar-08 10:12 
GeneralRe: Method to get file path Pin
nvphap25-Mar-08 16:55
nvphap25-Mar-08 16:55 
GeneralRe: Method to get file path Pin
Mark Salsbery25-Mar-08 17:07
Mark Salsbery25-Mar-08 17: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.