Click here to Skip to main content
15,914,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Random numbers Pin
Joe Woodbury2-Jun-20 11:21
professionalJoe Woodbury2-Jun-20 11:21 
AnswerRe: Random numbers Pin
Richard MacCutchan1-Jun-20 22:25
mveRichard MacCutchan1-Jun-20 22:25 
GeneralRe: Random numbers Pin
Calin Negru2-Jun-20 4:10
Calin Negru2-Jun-20 4:10 
GeneralRe: Random numbers Pin
Richard MacCutchan2-Jun-20 5:22
mveRichard MacCutchan2-Jun-20 5:22 
GeneralRe: Random numbers Pin
Calin Negru2-Jun-20 6:52
Calin Negru2-Jun-20 6:52 
AnswerRe: Random numbers Pin
CPallini2-Jun-20 20:16
mveCPallini2-Jun-20 20:16 
GeneralRe: Random numbers Pin
Calin Negru3-Jun-20 20:50
Calin Negru3-Jun-20 20:50 
GeneralRe: Random numbers Pin
CPallini3-Jun-20 20:53
mveCPallini3-Jun-20 20:53 
QuestionReturn Statement in C| when I used print just after if condition it gave me "Equal multiple times" but when i used return statement it game me single time? Pin
Member 148492461-Jun-20 10:17
Member 148492461-Jun-20 10:17 
AnswerRe: Return Statement in C| when I used print just after if condition it gave me "Equal multiple times" but when i used return statement it game me single time? Pin
jeron11-Jun-20 10:45
jeron11-Jun-20 10:45 
AnswerRe: Return Statement in C| when I used print just after if condition it gave me "Equal multiple times" but when i used return statement it game me single time? Pin
Richard MacCutchan1-Jun-20 20:54
mveRichard MacCutchan1-Jun-20 20:54 
QuestionI could not understand loop testcondition understanding| rest program runs fine Pin
Member 1484924631-May-20 8:55
Member 1484924631-May-20 8:55 
AnswerRe: I could not understand loop testcondition understanding| rest program runs fine Pin
Greg Utas31-May-20 9:40
professionalGreg Utas31-May-20 9:40 
AnswerRe: I could not understand loop testcondition understanding| rest program runs fine Pin
Richard MacCutchan31-May-20 21:58
mveRichard MacCutchan31-May-20 21:58 
QuestionPassing an entry from an array as argument Pin
Calin Negru31-May-20 8:35
Calin Negru31-May-20 8:35 
AnswerRe: Passing an entry from an array as argument Pin
Greg Utas31-May-20 9:36
professionalGreg Utas31-May-20 9:36 
GeneralRe: Passing an entry from an array as argument Pin
Calin Negru31-May-20 9:58
Calin Negru31-May-20 9:58 
GeneralRe: Passing an entry from an array as argument Pin
Greg Utas31-May-20 10:25
professionalGreg Utas31-May-20 10:25 
GeneralRe: Passing an entry from an array as argument Pin
Calin Negru31-May-20 20:33
Calin Negru31-May-20 20:33 
QuestionReading a text file from a remote machine in LAN using c, c++, vc++ Pin
manoharbalu27-May-20 23:51
manoharbalu27-May-20 23:51 
GeneralRe: Reading a text file from a remote machine in LAN using c, c++, vc++ Pin
Richard MacCutchan28-May-20 0:24
mveRichard MacCutchan28-May-20 0:24 
AnswerRe: Reading a text file from a remote machine in LAN using c, c++, vc++ Pin
CPallini28-May-20 1:25
mveCPallini28-May-20 1:25 
SuggestionRe: Reading a text file from a remote machine in LAN using c, c++, vc++ Pin
David Crow28-May-20 2:47
David Crow28-May-20 2:47 
GeneralRe: Reading a text file from a remote machine in LAN using c, c++, vc++ Pin
CPallini28-May-20 10:08
mveCPallini28-May-20 10:08 
QuestionGet expanded macros from precompiler and insert as comments in source code? Pin
arnold_w27-May-20 20:14
arnold_w27-May-20 20:14 
I am working with embedded C and sometimes I compile with Eclipse/GCC and sometimes with STMicroelectronics System Workbench. In my code there are a lot of nested macros and I think it would be great to display the expanded macro value as a comment right after the macro (note: only the macros without parameters). So I was thinking of having a post-build .exe-file/script that takes the result from the precompiler and puts it back into the source code as comments after the macros. As an alternative, I could have a pre-build .exe-file/script that executes the pre-compiler (meaning it will be executed twice for each compile) and then modifies the source code. I feel fairly confident about writing the .exe-file/script, but I have no idea how to execute the precompiler "on demand" or how to view the results of it. Could someone please provide some guidelines on how to achieve this? I know pretty much nothing about makefiles, precompilers, compilers, etc, so please feel free to formulate your answers in this thread in the way you would communicate with a beginner programmer.

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.