here is one my .h files:
Code:
#define IDR_MYMENU 101
#define IDI_MYICON 102
#define ID_FILE_EXIT 103
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 103
#define _APS_NEXT_COMMAND_VALUE 40004
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
I try and run my program, and I get an error that says "Unexpected end of file found" and it pointed to the last line of that header file where is says "#endif".
I keep trying to run it and get the same error. Now, to fix it I had to first change that file to:
Code:
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 103
#define _APS_NEXT_COMMAND_VALUE 40004
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
#define IDR_MYMENU 101
#define IDI_MYICON 102
#define ID_FILE_EXIT 103
i run it, and get the same error. Now, I change that file to:
Code:
#define IDR_MYMENU 101
#define IDI_MYICON 102
#define ID_FILE_EXIT 103
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 103
#define _APS_NEXT_COMMAND_VALUE 40004
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
Now, this is the same file I had in the beginning, and all of the sudden WOOOOO! It works!
how the heck does that happen? just from moving a chunk of text to the end, and back to the beginning fixes it?
could someone please explain this?