Linking Error
-
I am newly learning windows programming. I am trying to create a sort of simple application. When I try and link my project I get an error reading - fatal error RC1004: unexpected end of file found I am not sure how to deal with this. Any suggections? The error stems from the header file: // define for the application icon #define ICON_T3DX 100 // define for the application cursor #define CURSOR_CROSSHAIR 200 // define for the application music #define SOUND_ID_MUSIC 1 // defines for the top level menu OPTIONS #define MENU_OPTIONS_ID_PRINT 1000 #define MENU_OPTIONS_ID_EXIT 1001 // defines for the top level menu HELP #define MENU_HELP_ABOUT 2000 #define MENU_HELP_INSTRUCTIONS 2001 I am using the header to help with the implementation of resources. If anyone can help me resolve this error, that would be great. Thanks a lot!!!
-
I am newly learning windows programming. I am trying to create a sort of simple application. When I try and link my project I get an error reading - fatal error RC1004: unexpected end of file found I am not sure how to deal with this. Any suggections? The error stems from the header file: // define for the application icon #define ICON_T3DX 100 // define for the application cursor #define CURSOR_CROSSHAIR 200 // define for the application music #define SOUND_ID_MUSIC 1 // defines for the top level menu OPTIONS #define MENU_OPTIONS_ID_PRINT 1000 #define MENU_OPTIONS_ID_EXIT 1001 // defines for the top level menu HELP #define MENU_HELP_ABOUT 2000 #define MENU_HELP_INSTRUCTIONS 2001 I am using the header to help with the implementation of resources. If anyone can help me resolve this error, that would be great. Thanks a lot!!!
did you include the header? :) i've done that alot :( ~SilverShalkin :rose:
-
I am newly learning windows programming. I am trying to create a sort of simple application. When I try and link my project I get an error reading - fatal error RC1004: unexpected end of file found I am not sure how to deal with this. Any suggections? The error stems from the header file: // define for the application icon #define ICON_T3DX 100 // define for the application cursor #define CURSOR_CROSSHAIR 200 // define for the application music #define SOUND_ID_MUSIC 1 // defines for the top level menu OPTIONS #define MENU_OPTIONS_ID_PRINT 1000 #define MENU_OPTIONS_ID_EXIT 1001 // defines for the top level menu HELP #define MENU_HELP_ABOUT 2000 #define MENU_HELP_INSTRUCTIONS 2001 I am using the header to help with the implementation of resources. If anyone can help me resolve this error, that would be great. Thanks a lot!!!
#include <stdafx.h>
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
#include <stdafx.h>
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
#include <stdafx.h>
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.
-
Sorry... I did find and include th file in the project afterwards but ut still gives the same error- unexpected end of file found.
You need to #include stdafx.h for all your cpp files
Regards, Nish Native CPian. Born and brought up on CP. With the CP blood in him.