Posts: 1,556
Threads: 298
Joined: Dec 2002
I'm using an unpirated freshly bought Visual C++ 6.0, and as one of the project choices, it has something called DirectX 9 App Wizard. I told it to make a simple project that started off with a triangle, and it went ahead and put the code together... Upon trying to run it, it bombarded me with fat-headed errors such as:
Code:
warning C4067: unexpected tokens following preprocessor directive - expected a newline
Can someone please tell me what's going on?
Posts: 451
Threads: 16
Joined: Feb 2003
Did you miss a semicolon or some form of line terminator on your preprocessor directives?
I don't have my copy of VC6 here, but the other thing to do is look up the error C4067 and see what the help file says.
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
Posts: 1,556
Threads: 298
Joined: Dec 2002
Quote:Did you miss a semicolon or some form of line terminator on your preprocessor directives?
I don't have my copy of VC6 here, but the other thing to do is look up the error C4067 and see what the help file says.
I didn't make any of the code. Visual C++ generated it on it's own.
What disturbs me is that this has worked perfectly in the past, and now it's not working...
Posts: 3,616
Threads: 287
Joined: Jan 2003
Yeah - I think the problem is the same you had when you tried to run my (pure ANSI) code for a simply utility to dump files. It also spawned errors on the #includes.
I think that the problem is indeed with your compiler - but post the top of the code, where the error occurs.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 4,307
Threads: 63
Joined: May 2003
I think all you need is a newline at the end of the program =).