Rasool Ahmed 0 Newbie Poster

Hi gueys,
I am programming a class compenent liberary in C++ CLR, but I have a problem with exception throwing.
this is the code that call the exception:

throw gcnew ReadStreamException(Error);

and this is the exception class:

public ref class ReadStreamException : Exception
    {
        ReadStreamException(String^ Message) : Exception(Message) {}
    };

but when I compile it the compiler give this error:
Error 3 error C2061: syntax error : identifier 'ReadStreamException'

Please tell me what the wrong did I have????

thanx

Be a part of the DaniWeb community

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