Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can't figure out why I am getting the error message

Status
Not open for further replies.

ErickD

Programmer
Mar 24, 2003
2
CA
[C++ Error] SRGExc.h(70): E2321 Declaration does not specify a tag or an identifier.

class SRGraphException : public CException
{
public:

void ShowErrorMessage(); // <---- getting error in this line
};

I have shortened the code considerably
it comes from SRGExc.h

I did not create this file.

I don't understand the error message.
 
remember the error line is not necessarilly the place where the miscreant code resides. that is just were the compiler says &quot;whoa, what just happened&quot;. look in your code for the error.

yes no maybe

tomcruz.net
 
Actually your right, the error message is not for that line.

DECLARE_DYNCREATE(SRGraphException);

is where the message comes form.
 
if this code is from an installed library either you have discovered a bug or your code is not calling the specific functions properly. cant say much further as i dont know much about your code..

2ffat,lastcyborg you got 2 cents?
or do we need more code.

tomcruz.net
 
At first sight, I see a strange thing, the classname for Exceptions is &quot;TException&quot;, and not &quot;CException&quot;, at least that you have already declared a new class with that name
 
Sorry about last.
The class name for exceptions is just Exception without &quot;T&quot; or &quot;C&quot;.
 
I think the code above is from an installed library and is not ErickD's code.

Erick is this correct?

tomcruz.net
 
This looks to me very like a deliberate error message thrown by a library because it doesn't like what you are trying to do with it; probably a misunderstanding between you and it about how to call/use one of its functions...??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top