Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: 'Windows Media Player' Control ? Pin
David Crow27-Jun-06 3:17
David Crow27-Jun-06 3:17 
AnswerRe: 'Windows Media Player' Control ? Pin
Andy Rama3-Jul-06 1:47
Andy Rama3-Jul-06 1:47 
GeneralRe: 'Windows Media Player' Control ? Pin
David Crow5-Jul-06 2:57
David Crow5-Jul-06 2:57 
GeneralRe: 'Windows Media Player' Control ? Pin
Andy Rama5-Jul-06 19:35
Andy Rama5-Jul-06 19:35 
GeneralRe: 'Windows Media Player' Control ? Pin
David Crow6-Jul-06 2:43
David Crow6-Jul-06 2:43 
QuestionBeginner:"Why use Preprocessor directives?" Pin
AbhishekBK22-Jun-06 19:51
AbhishekBK22-Jun-06 19:51 
AnswerRe: Beginner:"Why use Preprocessor directives?" Pin
_AnsHUMAN_ 22-Jun-06 20:19
_AnsHUMAN_ 22-Jun-06 20:19 
AnswerRe: Beginner:"Why use Preprocessor directives?" Pin
Stephen Hewitt22-Jun-06 20:40
Stephen Hewitt22-Jun-06 20:40 
These look like reinclusion guards. It stops the same .H file from being processed multiple times in the same compilation unit as this can cause problems. i.e.
------------------------------------
// File "a.h"
//

class CMyClass
{
public:
CMyClass() {}
};

// File "b.h"
//

#include "a.h"

// File "Main.cpp"
//

#include "a.h"
#include "b.h"

------------------------------------
This will casue problems as the class "CMyClass" is defined twice in the compilation unit "Main.cpp": once via "a.h" and once via "b.h" which includes "a.h". Reinclusion guards stop this kind of thing.


Steve

GeneralRe: Beginner:"Why use Preprocessor directives?" Pin
AbhishekBK22-Jun-06 20:50
AbhishekBK22-Jun-06 20:50 
GeneralRe: Beginner:"Why use Preprocessor directives?" [modified] Pin
Stephen Hewitt22-Jun-06 20:52
Stephen Hewitt22-Jun-06 20:52 
GeneralRe: Beginner:"Why use Preprocessor directives?" Pin
David Crow23-Jun-06 3:23
David Crow23-Jun-06 3:23 
AnswerRe: Beginner:"Why use Preprocessor directives?" Pin
moodsey21122-Jun-06 21:50
moodsey21122-Jun-06 21:50 
GeneralRe: Beginner:"Why use Preprocessor directives?" Pin
David Crow23-Jun-06 3:26
David Crow23-Jun-06 3:26 
AnswerRe: Beginner: Why use Preprocessor directives? [modified] Pin
toxcct22-Jun-06 21:50
toxcct22-Jun-06 21:50 
GeneralRe: Beginner: Why use Preprocessor directives? Pin
AbhishekBK22-Jun-06 22:54
AbhishekBK22-Jun-06 22:54 
GeneralRe: Beginner: Why use Preprocessor directives? Pin
Stephen Hewitt22-Jun-06 23:40
Stephen Hewitt22-Jun-06 23:40 
GeneralRe: Beginner: Why use Preprocessor directives? Pin
toxcct22-Jun-06 23:42
toxcct22-Jun-06 23:42 
Questioncolor of button control Pin
ashish dogra22-Jun-06 19:09
ashish dogra22-Jun-06 19:09 
AnswerRe: color of button control Pin
anothervip22-Jun-06 19:18
anothervip22-Jun-06 19:18 
GeneralRe: color of button control Pin
ashish dogra22-Jun-06 19:22
ashish dogra22-Jun-06 19:22 
GeneralRe: color of button control Pin
_AnsHUMAN_ 22-Jun-06 19:34
_AnsHUMAN_ 22-Jun-06 19:34 
GeneralRe: color of button control Pin
ashish dogra22-Jun-06 20:20
ashish dogra22-Jun-06 20:20 
GeneralRe: color of button control Pin
ashish dogra22-Jun-06 21:13
ashish dogra22-Jun-06 21:13 
QuestionRe: color of button control Pin
Hamid_RT22-Jun-06 21:59
Hamid_RT22-Jun-06 21:59 
AnswerRe: color of button control Pin
ashish dogra22-Jun-06 22:04
ashish dogra22-Jun-06 22:04 

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.