Click here to Skip to main content
15,887,267 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Apart from beeing nonportable. Is there any benefit from using #pragma once over the standard include guards on a modern compiler like VS2005?

There used to e the argument that it is faster because the copmpiler does not have to reopen the include file multiple times. Is this still the case?

I would expect a state of the art compiler to automatically detect include guards which is the case in gcc but the sole existance of pragma once implies this it not the case with MSVC 8.x.

Am I right? What are your best practices?


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 
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 

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.