Click here to Skip to main content
15,881,413 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what is wrong with this code? [modified] Pin
Richard MacCutchan22-Jan-11 21:35
mveRichard MacCutchan22-Jan-11 21:35 
AnswerRe: what is wrong with this code? Pin
Aescleal23-Jan-11 6:34
Aescleal23-Jan-11 6:34 
GeneralRe: what is wrong with this code? Pin
Adam Roderick J23-Jan-11 19:04
Adam Roderick J23-Jan-11 19:04 
GeneralRe: what is wrong with this code? Pin
PIEBALDconsult24-Jan-11 2:02
mvePIEBALDconsult24-Jan-11 2:02 
AnswerRe: what is wrong with this code? [modified] Pin
Stefan_Lang30-Jan-11 23:54
Stefan_Lang30-Jan-11 23:54 
QuestionRetaining whitespace within macro replacement text Pin
PIEBALDconsult22-Jan-11 4:17
mvePIEBALDconsult22-Jan-11 4:17 
AnswerRe: Retaining whitespace within macro replacement text Pin
Andrew Brock22-Jan-11 4:38
Andrew Brock22-Jan-11 4:38 
GeneralRe: Retaining whitespace within macro replacement text Pin
PIEBALDconsult22-Jan-11 9:00
mvePIEBALDconsult22-Jan-11 9:00 
Andrew Brock wrote:
there is a reason for that


Not a very compelling one, in my opinion.


Andrew Brock wrote:
You don't need to


Ordinarily no, but ordinarily you don't need to include comments either, yet you can if you choose to.


Andrew Brock wrote:
it makes absolutely no difference to the code.


It does to what I'm trying now.


Andrew Brock wrote:
(Maintaining the # symbol would be pretty awesome tho)


That can be done with a second macro. I've done that for PRO*C, and in what I'm trying to do now.

# define __second_pass__ #
__second_pass__ include <stdio.h> /* This will get included on the second pass through the preprocessor, not the first */


But, what I'm trying to do now is have a macro produce a directive for the second pass, and for that I need linefeeds. It's really not worth the effort and only I would try, but as long as preprocessors allow retaining comments, why not also allow retaining whitespace in macroes?
GeneralRe: Retaining whitespace within macro replacement text Pin
jschell22-Jan-11 12:01
jschell22-Jan-11 12:01 
GeneralRe: Retaining whitespace within macro replacement text Pin
PIEBALDconsult22-Jan-11 18:06
mvePIEBALDconsult22-Jan-11 18:06 
GeneralRe: Retaining whitespace within macro replacement text Pin
jschell23-Jan-11 10:40
jschell23-Jan-11 10:40 
QuestionUnknown problem with non-english languages [modified] Pin
rahul.kulshreshtha21-Jan-11 23:17
rahul.kulshreshtha21-Jan-11 23:17 
AnswerRe: Unknown problem with non-english languages Pin
Andrew Brock21-Jan-11 23:39
Andrew Brock21-Jan-11 23:39 
GeneralRe: Unknown problem with non-english languages Pin
rahul.kulshreshtha21-Jan-11 23:53
rahul.kulshreshtha21-Jan-11 23:53 
GeneralRe: Unknown problem with non-english languages Pin
Andrew Brock22-Jan-11 0:38
Andrew Brock22-Jan-11 0:38 
GeneralRe: Unknown problem with non-english languages Pin
rahul.kulshreshtha22-Jan-11 0:56
rahul.kulshreshtha22-Jan-11 0:56 
GeneralRe: Unknown problem with non-english languages Pin
Andrew Brock22-Jan-11 1:21
Andrew Brock22-Jan-11 1:21 
GeneralRe: Unknown problem with non-english languages Pin
rahul.kulshreshtha22-Jan-11 2:13
rahul.kulshreshtha22-Jan-11 2:13 
GeneralRe: Unknown problem with non-english languages Pin
Andrew Brock22-Jan-11 2:39
Andrew Brock22-Jan-11 2:39 
GeneralRe: Unknown problem with non-english languages Pin
Richard MacCutchan22-Jan-11 2:11
mveRichard MacCutchan22-Jan-11 2:11 
GeneralRe: Unknown problem with non-english languages Pin
Andrew Brock22-Jan-11 2:27
Andrew Brock22-Jan-11 2:27 
GeneralRe: Unknown problem with non-english languages Pin
Richard MacCutchan22-Jan-11 6:30
mveRichard MacCutchan22-Jan-11 6:30 
AnswerRe: Unknown problem with non-english languages Pin
Richard MacCutchan22-Jan-11 0:02
mveRichard MacCutchan22-Jan-11 0:02 
GeneralRe: Unknown problem with non-english languages Pin
rahul.kulshreshtha22-Jan-11 0:41
rahul.kulshreshtha22-Jan-11 0:41 
GeneralRe: Unknown problem with non-english languages Pin
Richard MacCutchan22-Jan-11 2:07
mveRichard MacCutchan22-Jan-11 2: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.