Results 1 to 4 of 4

Thread: Doesn't recognise my class

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    195

    Doesn't recognise my class

    This is a little hard to explain, but here goes.
    I have two classes which are defined in separate header files. For the sake of this message, I'm just call them 'Class1' and 'Class2'
    These two classes use each other, so I tried to do this:

    In Class1's header file
    Code:
    #include <Class2.h>
    In Class2's header file
    Code:
    #include <Class1.h>
    Both headers have '#pragma once' to avoid redefinition errors.

    The problem is then when the Class1 symbol is used in the Class2 header, it is not recognised (and vice verse).

    Maybe I've not explained this well enough, but I'll try to be more specific if you ask.
    Last edited by Barguast; May 30th, 2003 at 02:08 PM.
    Using Visual Studio .NET 2005

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width