Qbasicnews.com

Full Version: Error of stupidness...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
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...
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.
I think all you need is a newline at the end of the program =).