Thread: Real quick, wrong syntax?

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    241

    Real quick, wrong syntax?

    The compiler is saying that this is in the wrong syntax...
    Code:
    FILEVERSION VERSION_ID

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Forgot the semi-colon ( ; )??
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Well... that's not ANSI/ISO standard C++. That is, FILEVERSION and VERSION_ID are not defined in the standard.

    What compiler are you using, and what compiler was the "sample code" written for? It looks like the kind of thing that might be defined in windows.h. (The Windows API uses tons of constants & typedefs.)
    Last edited by DougDbug; 02-21-2006 at 04:24 PM.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    241
    I'm not that shure, I'll have to get back to you tomorrow

  5. #5
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    #define VERSION_ID 123
    #define FILEVERSION VERSION_ID

    Not sure if thats what you wanted ? I have never heard of VERSION_ID or FILEVERSION as a standard C++ term.
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  6. #6
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by Blackroot
    #define VERSION_ID 123
    #define FILEVERSION VERSION_ID

    Not sure if thats what you wanted ? I have never heard of VERSION_ID or FILEVERSION as a standard C++ term.
    That's quite a random guess, for all we know he's looking for this:
    Code:
    class FILEVERSION { /* Yada yada */ };
    
    FILEVERSION VERSION_ID;
    ...or as DougBDoug suggested:
    Code:
    #include <windows.h>
    
    FILEVERSION VERSION_ID;
    Last edited by SlyMaelstrom; 02-21-2006 at 10:10 PM.
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple syntax errors
    By Devolution in forum C Programming
    Replies: 1
    Last Post: 03-25-2009, 10:37 PM
  2. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  3. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  4. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM
  5. DJGPP assembly syntax ills...
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-11-2001, 02:54 AM