Hello
in C# : Partial type definitions allow the definition of a class, struct
or
interface to be split into multiple files.
I'd like to have the equivalent keyword of partial in VC++
does someone has an idea?
Thanks in advance
Hmmmm in what context would you like this? Meaning, why exactly
you want to split a class definition in multiple .h files?
You could always play with the preprocessor, I believe!
ClassX.h:
--------Cut here --------------
class X
{
public:
void f1();
void f2();
void f3();
#include "classX2.h"
--------Cut here --------------
ClassX2.h:
--------Cut here --------------
void f4();
void f5();
#include "classX3.h"
--------Cut here --------------
ClassX3.h:
--------Cut here --------------
private:
void f6();
int a,b,c;
}
--------Cut here --------------
But I don't easily see an advantage on doing this and wouldn't recommend it.
Fabro