unexpectendoffile

Why does MSVC++ give my an error if I try to compile a header into an include without a newline? (C++/Windows)

I'm using MSVC++ to program a simple window, and I included a resource file for a menu along the lines of: MYMENU MENU DISCARDABLE //etc. and I created a header file "resourcedef.h" with definitions like #define ID_MYMENU_FILE_CLOSE 1002 I can include it in my main.cpp file without error, however, when I include it in the resource ...

PHP: "unexpected $end" in the middle of a file

When I try to run this page (video.php), I get the following error: Parse error: syntax error, unexpected $end in /base/path/masked/inc/functions.php on line 37 The strange thing is "functions.php" has more than 37 lines... why is it detecting an end of file there? I don't think I'm missing any parens or brackets since each funct...