Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error of stupidness...
#1
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? Sad
Reply
#2
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.'
Reply
#3
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...
Reply
#4
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.
Reply
#5
I think all you need is a newline at the end of the program =).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)