Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to start an application on another system? Pin
pavanbabut28-Nov-06 8:18
pavanbabut28-Nov-06 8:18 
GeneralRe: How to start an application on another system? Pin
Scott Holt28-Nov-06 9:53
Scott Holt28-Nov-06 9:53 
GeneralRe: How to start an application on another system? Pin
pavanbabut28-Nov-06 11:21
pavanbabut28-Nov-06 11:21 
AnswerRe: How to start an application on another system? Pin
David Crow20-Nov-06 17:37
David Crow20-Nov-06 17:37 
QuestionUsing CView Pin
BlitzPackage20-Nov-06 11:52
BlitzPackage20-Nov-06 11:52 
AnswerRe: Using CView Pin
Christian Graus20-Nov-06 14:09
protectorChristian Graus20-Nov-06 14:09 
Questionhow to create a text box? Pin
bosstroy20-Nov-06 6:27
bosstroy20-Nov-06 6:27 
AnswerRe: how to create a text box? Pin
Waldermort20-Nov-06 7:00
Waldermort20-Nov-06 7:00 
AnswerRe: how to create a text box? Pin
Christian Graus20-Nov-06 14:10
protectorChristian Graus20-Nov-06 14:10 
QuestionHow to use write and read a CString var to file Pin
FRIT21620-Nov-06 5:13
FRIT21620-Nov-06 5:13 
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 

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.