'interface' does not mean a type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • perhiyar
    New Member
    • Jan 2008
    • 5

    #1

    'interface' does not mean a type

    Hi

    I am getting error 'interface' does not mean a type at following line:

    Code:
    	interface IEntry : public Tools::IObject
    	{
    	public:
    		virtual id_type getIdentifier() const = 0;
    		virtual void getShape(IShape** out) const = 0;
    		virtual ~IEntry() {}
    	};
    Can anybody figure out what this mean?
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by perhiyar
    Hi

    I am getting error 'interface' does not mean a type at following line:

    Code:
    	interface IEntry : public Tools::IObject
    	{
    	public:
    		virtual id_type getIdentifier() const = 0;
    		virtual void getShape(IShape** out) const = 0;
    		virtual ~IEntry() {}
    	};
    Can anybody figure out what this mean?
    C++ dosent have a keyword names interface.
    Thats why u are getting the error
    Change interface to class and it will compile

    Raghuram

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      The fact that you are using IObject tells me that this is a COM class that probably will be compiled by IDL.

      In COM interface is a typedef of struct.

      Have you included the necessary COM headers???

      Comment

      Working...