Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to use write and read a CString var to file Pin
Zac Howland20-Nov-06 5:28
Zac Howland20-Nov-06 5:28 
Questionpragma once faster as an include guards? Pin
User 58261920-Nov-06 5:11
User 58261920-Nov-06 5:11 
Answer[Message Deleted] Pin
toxcct20-Nov-06 5:25
toxcct20-Nov-06 5:25 
GeneralRe: pragma once faster as an include guards? Pin
User 58261920-Nov-06 8:13
User 58261920-Nov-06 8:13 
GeneralRe: pragma once faster as an include guards? Pin
Jörgen Sigvardsson20-Nov-06 12:26
Jörgen Sigvardsson20-Nov-06 12:26 
AnswerRe: pragma once faster as an include guards? Pin
Zac Howland20-Nov-06 5:35
Zac Howland20-Nov-06 5:35 
GeneralRe: pragma once faster as an include guards? Pin
User 58261920-Nov-06 8:35
User 58261920-Nov-06 8:35 
GeneralRe: pragma once faster as an include guards? Pin
Zac Howland20-Nov-06 8:44
Zac Howland20-Nov-06 8:44 
iberg wrote:
I know it's not supposed to be portable. But do you actually know any significant C++ compiler not implementing it? GCC has it and in fact they invented it, although it is commonly blamed on Microsoft, BCC has it, and MSVC has it. I would bet the Intel C++ compiler supports it too.


Sun's compiler doesn't support it. Last I checked, Intel's didn't either. There are several that do, but it is not a standard extension, and it behaves differently on each compiler that does support it.

iberg wrote:
My MFC application is not portable by definition.


Then you have nothing to worry about. Every MS compiler after VC6 has supported it.

iberg wrote:
So the question remains: Does it compile faster? If so and the code must be portable using both would be an option.


According to Microsoft's documentation (the link I provided in the previous post), it does compiler faster since the preprocessor has to do less work. Though, a faster compilation is almost a pointless argument for using it in most cases. If you are writing your code for VS.Net (any version), it doesn't matter which you use. Chances are pretty high that you won't notice a significant increase in compilation time for 95% of the apps you write.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: pragma once faster as an include guards? Pin
Nemanja Trifunovic20-Nov-06 10:49
Nemanja Trifunovic20-Nov-06 10:49 
AnswerRe: pragma once faster as an include guards? [modified] Pin
Michael Dunn20-Nov-06 8:06
sitebuilderMichael Dunn20-Nov-06 8:06 
GeneralRe: pragma once faster as an include guards? Pin
User 58261920-Nov-06 8:22
User 58261920-Nov-06 8:22 
GeneralRe: pragma once faster as an include guards? Pin
Stephen Hewitt20-Nov-06 12:12
Stephen Hewitt20-Nov-06 12:12 
GeneralRe: pragma once faster as an include guards? Pin
Jörgen Sigvardsson20-Nov-06 12:24
Jörgen Sigvardsson20-Nov-06 12:24 
GeneralRe: pragma once faster as an include guards? Pin
Stephen Hewitt20-Nov-06 12:29
Stephen Hewitt20-Nov-06 12:29 
AnswerRe: pragma once faster as an include guards? Pin
Blake Miller22-Nov-06 3:53
Blake Miller22-Nov-06 3:53 
QuestionUnique Question .... Pin
Programm3r20-Nov-06 4:04
Programm3r20-Nov-06 4:04 
AnswerRe: Unique Question .... Pin
led mike20-Nov-06 4:48
led mike20-Nov-06 4:48 
GeneralRe: Unique Question .... Pin
Programm3r20-Nov-06 4:51
Programm3r20-Nov-06 4:51 
GeneralRe: Unique Question .... Pin
led mike20-Nov-06 5:27
led mike20-Nov-06 5:27 
GeneralRe: Unique Question .... Pin
Programm3r20-Nov-06 19:23
Programm3r20-Nov-06 19:23 
AnswerRe: Unique Question .... Pin
Zac Howland20-Nov-06 5:39
Zac Howland20-Nov-06 5:39 
GeneralRe: Unique Question .... Pin
Programm3r20-Nov-06 19:20
Programm3r20-Nov-06 19:20 
GeneralRe: Unique Question .... Pin
Zac Howland21-Nov-06 3:32
Zac Howland21-Nov-06 3:32 
AnswerRe: Unique Question .... Pin
Scott Holt20-Nov-06 14:51
Scott Holt20-Nov-06 14:51 
GeneralRe: Unique Question .... Pin
Programm3r20-Nov-06 19:26
Programm3r20-Nov-06 19:26 

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.