Click here to Skip to main content
15,898,968 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Splitter, "OnSize strikes back !" Pin
CrocodileBuck11-Oct-08 7:51
CrocodileBuck11-Oct-08 7:51 
Questionurgent Pin
charusood8-Oct-08 2:53
charusood8-Oct-08 2:53 
AnswerRe: urgent Pin
Mark Salsbery8-Oct-08 7:14
Mark Salsbery8-Oct-08 7:14 
AnswerRe: urgent Pin
Paul Conrad9-Oct-08 7:03
professionalPaul Conrad9-Oct-08 7:03 
QuestionHeader in namespace Pin
piwi1337-Oct-08 22:30
piwi1337-Oct-08 22:30 
AnswerRe: Header in namespace Pin
Mark Salsbery8-Oct-08 7:21
Mark Salsbery8-Oct-08 7:21 
GeneralRe: Header in namespace Pin
piwi1338-Oct-08 22:39
piwi1338-Oct-08 22:39 
GeneralRe: Header in namespace Pin
Mark Salsbery9-Oct-08 5:06
Mark Salsbery9-Oct-08 5:06 
Here's what I'm talking about...

This makes usage difficult and error prone:
namespace Headerns
{
	#include "blub.h"
}

Why should you have to always remember to wrap the #include in
a namespace?

Why not do this instead:
/////////////////
//blub.h
/////////////////

#ifndef BLUB_H
#define BLUB_H

namespace Headerns
{
   void blub();
}
 
#endif


/////////////////
//blub.cpp
/////////////////

#include "blub.h"
#include 

using namespace std;

void blub()
{
	cout << "Hurra" << endl;
}


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionVisual c++ Net Designer Class disapear [modified] Pin
mikobi7-Oct-08 3:11
mikobi7-Oct-08 3:11 
AnswerRe: Visual c++ Net Designer Class disapear Pin
dybs10-Oct-08 18:56
dybs10-Oct-08 18:56 
GeneralRe: Visual c++ Net Designer Class disapear Pin
mikobi12-Oct-08 19:39
mikobi12-Oct-08 19:39 
AnswerRe: Visual c++ Net Designer Class disapear Pin
leonigah18-Dec-08 22:53
leonigah18-Dec-08 22:53 
AnswerRe: Visual c++ Net Designer Class disapear Pin
Dirkus Maximus18-Feb-10 18:16
Dirkus Maximus18-Feb-10 18:16 
QuestionCan't deliver MediaSample to two different output pins - Directshow problem Pin
itchy237-Oct-08 2:13
itchy237-Oct-08 2:13 
AnswerRe: Can't deliver MediaSample to two different output pins - Directshow problem Pin
Mark Salsbery7-Oct-08 4:36
Mark Salsbery7-Oct-08 4:36 
AnswerRe: Can't deliver MediaSample to two different output pins - Directshow problem Pin
Mark Salsbery9-Oct-08 8:25
Mark Salsbery9-Oct-08 8:25 
GeneralRe: Can't deliver MediaSample to two different output pins - Directshow problem Pin
itchy239-Oct-08 21:09
itchy239-Oct-08 21:09 
QuestionEvent handling in C Pin
massaslayer6-Oct-08 4:39
massaslayer6-Oct-08 4:39 
AnswerRe: Event handling in C Pin
Mark Salsbery6-Oct-08 6:26
Mark Salsbery6-Oct-08 6:26 
QuestionProgram too big to fit in memory Pin
Cyrilix3-Oct-08 10:57
Cyrilix3-Oct-08 10:57 
AnswerRe: Program too big to fit in memory Pin
Cyrilix3-Oct-08 13:00
Cyrilix3-Oct-08 13:00 
GeneralRe: Program too big to fit in memory Pin
Mark Salsbery3-Oct-08 14:49
Mark Salsbery3-Oct-08 14:49 
GeneralRe: Program too big to fit in memory Pin
Cyrilix3-Oct-08 21:44
Cyrilix3-Oct-08 21:44 
GeneralRe: Program too big to fit in memory Pin
Mark Salsbery4-Oct-08 7:13
Mark Salsbery4-Oct-08 7:13 
GeneralRe: Program too big to fit in memory Pin
Cyrilix4-Oct-08 8:45
Cyrilix4-Oct-08 8:45 

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.