Hi

I have declared the class in the header file

class Test{
    public: 
    //  Constructor
    Test();
    //  Variables
    IClassFact  *m_pClassFact;
};

But I am getting an error

error C2143: syntax error : missing ';' before '*'

And also I am getting this error

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   

Can anyone please help me
Regards
Karan

what's the type of 'IClassFact' , if its another class is the header file included? compiler is not able to deduce the type.

I hope IclassFact is not a class template?
check!

Maybe IClassFact is a reference class only..

1. Use code tags:
[code=c++] ... sources ..

[/code]
2. If class IClassFact is not defined in the incude point, use incomplete type declaration just before class Test definition:

class IClassFact; // this is a class name, I'll define it later
class Test { ...
...
IClassFact* m_pClassFact;
};

It's enough to declare pointers to this incomplete type.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.