The compiler is saying that this is in the wrong syntax...
Code:FILEVERSION VERSION_ID
The compiler is saying that this is in the wrong syntax...
Code:FILEVERSION VERSION_ID
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.
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.
I'm not that shure, I'll have to get back to you tomorrow
#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 *)
That's quite a random guess, for all we know he's looking for this:Originally Posted by Blackroot
...or as DougBDoug suggested:Code:class FILEVERSION { /* Yada yada */ }; FILEVERSION VERSION_ID;
Code:#include <windows.h> FILEVERSION VERSION_ID;
Last edited by SlyMaelstrom; 02-21-2006 at 10:10 PM.
Sent from my iPadŽ