Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange chars Pin
_Flaviu3-May-20 5:21
_Flaviu3-May-20 5:21 
GeneralRe: Strange chars Pin
Richard MacCutchan7-May-20 4:34
mveRichard MacCutchan7-May-20 4:34 
QuestionPassing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 1:16
Calin Negru28-Apr-20 1:16 
AnswerRe: Passing an array as argument to a function (2) Pin
Richard MacCutchan28-Apr-20 2:40
mveRichard MacCutchan28-Apr-20 2:40 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 3:08
Calin Negru28-Apr-20 3:08 
GeneralRe: Passing an array as argument to a function (2) Pin
k505428-Apr-20 3:23
mvek505428-Apr-20 3:23 
AnswerRe: Passing an array as argument to a function (2) Pin
Greg Utas28-Apr-20 2:48
professionalGreg Utas28-Apr-20 2:48 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 3:36
Calin Negru28-Apr-20 3:36 
GeneralRe: Passing an array as argument to a function (2) Pin
Victor Nijegorodov28-Apr-20 8:49
Victor Nijegorodov28-Apr-20 8:49 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 9:54
Calin Negru28-Apr-20 9:54 
GeneralRe: Passing an array as argument to a function (2) Pin
Victor Nijegorodov28-Apr-20 10:22
Victor Nijegorodov28-Apr-20 10:22 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 10:45
Calin Negru28-Apr-20 10:45 
GeneralRe: Passing an array as argument to a function (2) Pin
Victor Nijegorodov28-Apr-20 10:58
Victor Nijegorodov28-Apr-20 10:58 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 20:59
Calin Negru28-Apr-20 20:59 
GeneralRe: Passing an array as argument to a function (2) Pin
Victor Nijegorodov30-Apr-20 6:13
Victor Nijegorodov30-Apr-20 6:13 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru1-May-20 0:51
Calin Negru1-May-20 0:51 
QuestionParsing the Command Line Pin
Richard Andrew x6426-Apr-20 5:50
professionalRichard Andrew x6426-Apr-20 5:50 
QuestionRe: Parsing the Command Line Pin
David Crow27-Apr-20 1:59
David Crow27-Apr-20 1:59 
AnswerRe: Parsing the Command Line Pin
Richard Andrew x6427-Apr-20 2:03
professionalRichard Andrew x6427-Apr-20 2:03 
AnswerRe: Parsing the Command Line Pin
David Crow27-Apr-20 2:12
David Crow27-Apr-20 2:12 
Richard Andrew x64 wrote:

I imagine each argument separated into an array, and the executable name separated.
All of that is contained in the argv vector. For the executable name, look at the 0th item.

For WinMain(), you may have to refer to __argc and __argv instead.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles


GeneralRe: Parsing the Command Line Pin
Richard Andrew x6427-Apr-20 3:00
professionalRichard Andrew x6427-Apr-20 3:00 
SuggestionRe: Parsing the Command Line Pin
David Crow27-Apr-20 3:31
David Crow27-Apr-20 3:31 
AnswerRe: Parsing the Command Line Pin
Graham Breach27-Apr-20 4:34
Graham Breach27-Apr-20 4:34 
GeneralRe: Parsing the Command Line Pin
Richard Andrew x6427-Apr-20 5:13
professionalRichard Andrew x6427-Apr-20 5:13 
PraiseRe: Parsing the Command Line Pin
David Crow27-Apr-20 7:16
David Crow27-Apr-20 7:16 

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.