Click here to Skip to main content
15,121,818 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CMFCRibbonComboBox Pin
Member 1325158812-Jan-21 10:18
MemberMember 1325158812-Jan-21 10:18 
GeneralRe: CMFCRibbonComboBox Pin
Victor Nijegorodov12-Jan-21 11:12
MemberVictor Nijegorodov12-Jan-21 11:12 
GeneralRe: CMFCRibbonComboBox Pin
Member 1325158812-Jan-21 17:23
MemberMember 1325158812-Jan-21 17:23 
GeneralRe: CMFCRibbonComboBox Pin
Victor Nijegorodov12-Jan-21 22:07
MemberVictor Nijegorodov12-Jan-21 22:07 
GeneralRe: CMFCRibbonComboBox Pin
Richard MacCutchan12-Jan-21 22:24
mveRichard MacCutchan12-Jan-21 22:24 
QuestionC Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill11-Jan-21 11:49
Memberjackngill11-Jan-21 11:49 
QuestionRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
David Crow11-Jan-21 17:36
MemberDavid Crow11-Jan-21 17:36 
AnswerRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill11-Jan-21 23:25
Memberjackngill11-Jan-21 23:25 
Hi David,

Many thanks for responding to my posting & yes I should of explained with more clarity in respect of my failure. This will be my first program written in "C" I usually write small batch programs in XP and/or sometimes in Win9x. I have found that CMD (although) is very good sometimes I could do with some assistance programs to ease XP's CMD. So I am trying to write small helper programs in "C" to facilitate this, just some background info which may or may not be relevant.

I have been to an online site which compiles my code as a check & a series of errors are reported which lead me to believe my code has errors & is not right I will display the output below from "https://www.onlinegdb.com/online_c_compiler"
The Compilation failed due to following error(s).
main.c:7:1: error: expected identifier or ‘(’ before ‘for’
 for (i = 1; i < argc; i++) {
 ^~~
main.c:7:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token
 for (i = 1; i < argc; i++) {
               ^
main.c:7:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘++’ token
 for (i = 1; i < argc; i++) {
                        ^~
main.c: In function ‘echo’:
main.c:29:28: error: ‘STDIN’ undeclared (first use in this function)
     while(fgets(input, 80, STDIN)){  //read from STDIN (aka command-line)
                            ^~~~~
main.c:29:28: note: each undeclared identifier is reported only once for each function it appears in
main.c: At top level:
main.c:38:7: error: expected identifier or ‘(’ before ‘if’
       if (*char == -x) {
       ^~
main.c:42:7: error: expected identifier or ‘(’ before ‘else’
       else
       ^~~~
main.c:47:14: error: unterminated comment
              /* remove carriage returns from one line /*
              ^

I am unclear as to what these errors messages mean really. Hope this gives you a rough idea as to where my failure is. I am concerned also about the structure of my potential program as I am not sure if it is right? any guidance would be appreciated? Also just as a tag-on due to the fact I am writing very small programs could you advise as to a small .com .EXE builder that I could use Please?
Best Regards

modified 12-Jan-21 4:38am.

AnswerRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan11-Jan-21 23:36
mveRichard MacCutchan11-Jan-21 23:36 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill11-Jan-21 23:58
Memberjackngill11-Jan-21 23:58 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan12-Jan-21 0:09
mveRichard MacCutchan12-Jan-21 0:09 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill12-Jan-21 0:15
Memberjackngill12-Jan-21 0:15 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan12-Jan-21 0:55
mveRichard MacCutchan12-Jan-21 0:55 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill12-Jan-21 10:46
Memberjackngill12-Jan-21 10:46 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan12-Jan-21 22:32
mveRichard MacCutchan12-Jan-21 22:32 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill13-Jan-21 6:24
Memberjackngill13-Jan-21 6:24 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan13-Jan-21 2:50
mveRichard MacCutchan13-Jan-21 2:50 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill13-Jan-21 6:26
Memberjackngill13-Jan-21 6:26 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
Richard MacCutchan13-Jan-21 6:36
mveRichard MacCutchan13-Jan-21 6:36 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill14-Jan-21 13:04
Memberjackngill14-Jan-21 13:04 
GeneralRe: C Programming code to build an echo varient that hopefully can be used in WinXP Pin
jackngill16-Jan-21 0:59
Memberjackngill16-Jan-21 0:59 
QuestionMFC: Most recently used (MRU) files Pin
Member 1325158810-Jan-21 19:18
MemberMember 1325158810-Jan-21 19:18 
AnswerRe: MFC: Most recently used (MRU) files Pin
Victor Nijegorodov10-Jan-21 22:28
MemberVictor Nijegorodov10-Jan-21 22:28 
GeneralRe: MFC: Most recently used (MRU) files Pin
Member 1325158810-Jan-21 23:11
MemberMember 1325158810-Jan-21 23:11 
GeneralRe: MFC: Most recently used (MRU) files Pin
Victor Nijegorodov11-Jan-21 0:09
MemberVictor Nijegorodov11-Jan-21 0:09 

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.