Click here to Skip to main content
15,921,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: changing process access levels/rights Pin
Luke Murray3-Nov-05 14:16
Luke Murray3-Nov-05 14:16 
Questionhow to get the file's full path from printer queue? Pin
szcococut30-Oct-05 15:10
szcococut30-Oct-05 15:10 
AnswerRe: how to get the file's full path from printer queue? Pin
Mircea Puiu30-Oct-05 21:11
Mircea Puiu30-Oct-05 21:11 
Questioni need help!!! Pin
gr8coaster32930-Oct-05 14:55
gr8coaster32930-Oct-05 14:55 
AnswerRe: i need help!!! Pin
Christian Graus30-Oct-05 15:13
protectorChristian Graus30-Oct-05 15:13 
GeneralRe: i need help!!! Pin
gr8coaster32930-Oct-05 15:28
gr8coaster32930-Oct-05 15:28 
GeneralRe: i need help!!! Pin
Christian Graus30-Oct-05 15:54
protectorChristian Graus30-Oct-05 15:54 
GeneralRe: i need help!!! Pin
gr8coaster32930-Oct-05 16:01
gr8coaster32930-Oct-05 16:01 
GeneralRe: i need help!!! Pin
Christian Graus30-Oct-05 16:03
protectorChristian Graus30-Oct-05 16:03 
QuestionHow to use GridCtrl? Pin
codechen47030-Oct-05 14:01
codechen47030-Oct-05 14:01 
AnswerRe: How to use GridCtrl? Pin
Christian Graus30-Oct-05 14:38
protectorChristian Graus30-Oct-05 14:38 
Questioncopy paste linux style in windows Pin
Noam Ben Haim30-Oct-05 4:50
Noam Ben Haim30-Oct-05 4:50 
AnswerRe: copy paste linux style in windows Pin
__yb31-Oct-05 21:40
__yb31-Oct-05 21:40 
Questionhelp! how to carry out this function? Pin
ewighell30-Oct-05 4:30
ewighell30-Oct-05 4:30 
AnswerRe: help! how to carry out this function? Pin
Christian Graus30-Oct-05 11:40
protectorChristian Graus30-Oct-05 11:40 
GeneralRe: help! how to carry out this function? Pin
ewighell30-Oct-05 14:35
ewighell30-Oct-05 14:35 
GeneralRe: help! how to carry out this function? Pin
Christian Graus30-Oct-05 14:38
protectorChristian Graus30-Oct-05 14:38 
GeneralRe: help! how to carry out this function? Pin
ewighell30-Oct-05 15:10
ewighell30-Oct-05 15:10 
GeneralRe: help! how to carry out this function? Pin
Christian Graus30-Oct-05 15:11
protectorChristian Graus30-Oct-05 15:11 
GeneralRe: help! how to carry out this function? Pin
ewighell30-Oct-05 15:18
ewighell30-Oct-05 15:18 
QuestionSpeed up compilation by ramdisk? Pin
Christof Schardt30-Oct-05 0:46
Christof Schardt30-Oct-05 0:46 
AnswerRe: Speed up compilation by ramdisk? Pin
Gary R. Wheeler31-Oct-05 3:26
Gary R. Wheeler31-Oct-05 3:26 
GeneralRe: Speed up compilation by ramdisk? Pin
Blake Miller31-Oct-05 4:01
Blake Miller31-Oct-05 4:01 
GeneralRe: Speed up compilation by ramdisk? Pin
Christof Schardt31-Oct-05 5:21
Christof Schardt31-Oct-05 5:21 
GeneralRe: Speed up compilation by ramdisk? Pin
Blake Miller31-Oct-05 5:54
Blake Miller31-Oct-05 5:54 
I do not know for certain.

It is my suspicion that the #pragma once will cause the file to be added to a table that it has already been processed, whereas the #ifndef does not necessarily preclude reparsing of the entire header, as one does not necessarily include or preclude the entire file within the confines of an #ifndef/#endif set.

The #pragma once, however, seems to imply, "hey, once you read this file for this compilation unit, don't bother reading it again". I favor adding the #pragma once if I now a header would never require reparsing within a single compilation unit. I prefer to create headers that do not depend upon such reparsing activity.

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.