Thread: global classes?????

  1. #1
    Registered User
    Join Date
    May 2002

    global classes?????


    I am having problems with my classes being available globally to all my source files. I have had help from the gamedev forums which have got me halfway there but now i am getting major compile errors where before i had none! If someone who knows more than me about c++ ( probably anyone! ) could have a look at my code and tell me where i am going wrong or how i could do things better in regards to using my class, i would be very grateful!

    I have recently discovered STL Vectors and classes so i have made a class that i use to create a vector, and load words into the class and i have a function in the class that jumbles the word randomly.

    the line " while ((CWORD::jumbledword) == (CWORD::word));"

    in the file CWord.h is causing huge problems now where as before it was not a problem. Error code "C2784" with visual c++ compiler. There imust be atleast 30 errors on the same line, all C2784

    and there are also errors in the game.cpp file in regards to my vector. If anyone can help me i would appreciate it!

    Thanks for your time!


  2. #2
    Registered User
    Join Date
    May 2002
    I'm going to have a look at it then post a reply tommorrow.
    tudehopet uses Borland Compiler 5.5
    and Visual C++ 6.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Classes and Global Functions
    By d_heyzie in forum C++ Programming
    Replies: 4
    Last Post: 04-17-2007, 07:57 PM
  2. Array of Global Classes
    By CrymsonSoul in forum C++ Programming
    Replies: 8
    Last Post: 06-05-2006, 12:48 AM
  3. Declaring classes in global space
    By Rune Hunter in forum C++ Programming
    Replies: 12
    Last Post: 10-12-2005, 02:46 PM
  4. Global Variables, include files and classes
    By sharpstones in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2005, 10:06 AM
  5. Global Classes
    By Death_Wraith in forum C++ Programming
    Replies: 3
    Last Post: 03-12-2004, 07:12 AM