Click here to Skip to main content
15,905,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Initializing class from it's name - Standard C++ Pin
N a v a n e e t h8-Sep-08 0:14
N a v a n e e t h8-Sep-08 0:14 
GeneralRe: Initializing class from it's name - Standard C++ Pin
CPallini8-Sep-08 0:35
mveCPallini8-Sep-08 0:35 
GeneralRe: Initializing class from it's name - Standard C++ Pin
N a v a n e e t h8-Sep-08 0:48
N a v a n e e t h8-Sep-08 0:48 
GeneralRe: Initializing class from it's name - Standard C++ Pin
CPallini8-Sep-08 0:56
mveCPallini8-Sep-08 0:56 
QuestionAvoid includei in header files Pin
reza matinnejad7-Sep-08 20:11
reza matinnejad7-Sep-08 20:11 
AnswerRe: Avoid includei in header files Pin
toxcct7-Sep-08 21:09
toxcct7-Sep-08 21:09 
GeneralRe: Avoid includei in header files Pin
reza matinnejad7-Sep-08 21:15
reza matinnejad7-Sep-08 21:15 
GeneralRe: Avoid includei in header files Pin
toxcct7-Sep-08 21:21
toxcct7-Sep-08 21:21 
reza matinnejad wrote:
I avoid making circular includes in this way


this CANNOT happen, as long as you designed your headers correctly.

there is a multiple includes exclusion system which tells for the header which it's defined in not to include it more than once...

If you're using Visual Studio only, the following is good and prefered for performances. This is MS specific:
<font color="green">//Beginning of the header file</font>
<font color="blue">#pragma once</font>
 
<font color="green">//...remaining of your file...</font>

if your sources are portable on pultiple plateforms, then use the standard construction which works on any compiler (Visual C++ included):
<font color="green">//Beginning of the header file</font>
<font color="blue">#ifndef</font> __YOUR_HEADER_FILE_H_INCLUDED__
<font color="blue">#define</font> __YOUR_HEADER_FILE_H_INCLUDED__
 
<font color="green">//...remaining of your file...</font>
 
<font color="blue">#endif</font> <font color="green">//At the very end of the file</font>



GeneralRe: Avoid includei in header files Pin
reza matinnejad7-Sep-08 21:28
reza matinnejad7-Sep-08 21:28 
GeneralRe: Avoid includei in header files Pin
toxcct7-Sep-08 21:34
toxcct7-Sep-08 21:34 
Questioncaptureing right click mouse event........ Pin
ani_ikram7-Sep-08 19:58
ani_ikram7-Sep-08 19:58 
AnswerRe: captureing right click mouse event........ Pin
Rane7-Sep-08 20:11
Rane7-Sep-08 20:11 
AnswerRe: captureing right click mouse event........ Pin
SandipG 7-Sep-08 20:12
SandipG 7-Sep-08 20:12 
GeneralRe: captureing right click mouse event........ Pin
ani_ikram7-Sep-08 20:34
ani_ikram7-Sep-08 20:34 
GeneralRe: captureing right click mouse event........ Pin
SandipG 7-Sep-08 21:15
SandipG 7-Sep-08 21:15 
GeneralRe: captureing right click mouse event........ Pin
ani_ikram7-Sep-08 21:18
ani_ikram7-Sep-08 21:18 
GeneralRe: captureing right click mouse event........ Pin
SandipG 7-Sep-08 21:25
SandipG 7-Sep-08 21:25 
GeneralRe: captureing right click mouse event........ Pin
ani_ikram9-Sep-08 17:23
ani_ikram9-Sep-08 17:23 
GeneralRe: captureing right click mouse event........ Pin
SandipG 9-Sep-08 19:02
SandipG 9-Sep-08 19:02 
QuestionRegSetValueEx crashing Pin
monsieur_jj7-Sep-08 19:28
monsieur_jj7-Sep-08 19:28 
AnswerRe: RegSetValueEx crashing Pin
Rane7-Sep-08 20:04
Rane7-Sep-08 20:04 
GeneralRe: RegSetValueEx crashing Pin
monsieur_jj7-Sep-08 20:22
monsieur_jj7-Sep-08 20:22 
GeneralRe: RegSetValueEx crashing Pin
Rane8-Sep-08 0:07
Rane8-Sep-08 0:07 
QuestionRe: RegSetValueEx crashing Pin
CPallini7-Sep-08 23:45
mveCPallini7-Sep-08 23:45 
QuestionRe: RegSetValueEx crashing Pin
David Crow8-Sep-08 4:02
David Crow8-Sep-08 4:02 

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.