hey can any one please tell me what do the numbers in Resource.h file of our project signify??Can't i give random numbers to the different constants??
Printable View
hey can any one please tell me what do the numbers in Resource.h file of our project signify??Can't i give random numbers to the different constants??
It might help if we could see resource.h
Generally, though, as you use the resource editor this file is filled out automatically for you, unless you begin to manually enter resources. Let us see what you have already to be more specific.
my resource file goes as:
and I am recieving the following errors:Code://{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by def.rc
//
#define IDS_HELLO 1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#define IDD_ABOUTBOX 100
#define IDR_MAINFRAME 128
#define IDR_PFLOWTYPE 129
#define IDR_DRAWBAR 139
#define IDD_BUSPROPERTYSHEET 141
#define IDD_GENERATORPROPERTYSHEET 142
#define IDD_CAPACITORPROPERTYSHEET 143
#define IDD_TRANSFORMERPROPERTYSHEET 144
#define IDD_LINEPROPERTYSHEET 145
#define IDD_LOADPROPERTYSHEET 146
#define IDD_DELETEBOX 148
#define IDD_BUSDETAILSSHEET 151
#define IDD_WRITETEXT 155
#define IDD_TRANSFORMERP1 160
#define IDB_BITMAP1 161
#define IDD_GENERATOR1 162
#define IDD_GENSTEAM 163
#define IDD_GENHYDRO 164
#define IDD_IEEE 165
#define IDD_GENSTATIC 166
#define IDC_BUSNO 1001
#define IDC_COMBO1 1002
#define IDC_EDIT2 1003
#define IDC_EDIT3 1004
#define IDC_EDIT4 1005
#define IDC_PV 1008
#define IDC_SLACK 1009
#define IDC_PQ 1010
#define IDC_EDIT1 1013
#define IDC_EDIT5 1014
#define IDC_EDIT6 1015
#define IDC_EDIT8 1017
#define IDC_EDIT9 1018
#define IDC_EDIT10 1019
#define IDC_EDIT7 1020
#define IDC_VERTICAL 1021
#define IDC_HORIZONTAL 1022
#define IDC_LEFT 1023
#define IDC_RIGHT 1024
#define IDC_UP 1025
#define IDC_DOWN 1026
#define IDC_RADIO1 1027
#define IDC_RADIO2 1028
#define IDC_RADIO3 1029
#define IDC_RADIO4 1030
#define IDC_RADIO5 1031
#define IDC_RADIO6 1032
#define IDC_RADIO7 1033
#define IDC_RADIO8 1034
#define IDC_EDIT11 1037
#define IDC_EDIT12 1038
#define IDC_EDIT13 1039
#define IDC_RADIO9 1040
#define IDC_RADIO10 1041
#define IDC_RADIO11 1042
#define IDC_EDIT14 1043
#define IDC_EDIT15 1044
#define IDC_EDIT16 1045
#define IDC_EDIT17 1046
#define IDC_EDIT18 1047
#define IDC_EDIT19 1048
#define IDC_EDIT20 1049
#define ID_BUS 32771
#define ID_GENERATOR 32772
#define ID_CAPACITOR 32773
#define ID_LOAD 32774
#define ID_LINE 32775
#define ID_TRANSFORMER 32776
#define ID_TEXT 32783
#define ID_TOOLS_ADDBUS 32785
#define ID_TOOLS_ADDGENERATOR 32786
#define ID_TOOLS_ADDCAPACITOR 32787
#define ID_TOOLS_ADDTRANSFORMER 32788
#define ID_TOOLS_ADDLOAD 32789
#define ID_TOOLS_ADDLINE 32790
#define ID_TOOLS_ADDTEXT 32791
#define ID_DELETE_LINE 32792
#define ID_DELETE_LOAD 32793
#define ID_DELETE_BUS 32794
#define ID_DELETE_TRANSFORMER 32795
#define ID_DELETE_CAPACITOR 32796
#define ID_DELETE_GENERATOR 32797
#define ID_DETAILS_BUS 32798
#define ID_DETAILS_CAPACITOR 32799
#define ID_DETAILS_GENERATOR 32800
#define ID_DETAILS_LINE 32801
#define ID_DETAILS_LOAD 32802
#define ID_DETAILS_TRANSFORMER 32803
#define ID_HELP_HELPCONTEXT 32804
#endif
#endif
error C2065: 'IDD_BUSPROPERTYSHEET' : undeclared identifier
and similar 25 more errors now please help!!
my resource file goes as:
and I am recieving the following errors:Code://{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by def.rc
//
#define IDS_HELLO 1
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#define IDD_ABOUTBOX 100
#define IDR_MAINFRAME 128
#define IDR_PFLOWTYPE 129
#define IDR_DRAWBAR 139
#define IDD_BUSPROPERTYSHEET 141
#define IDD_GENERATORPROPERTYSHEET 142
#define IDD_CAPACITORPROPERTYSHEET 143
#define IDD_TRANSFORMERPROPERTYSHEET 144
#define IDD_LINEPROPERTYSHEET 145
#define IDD_LOADPROPERTYSHEET 146
#define IDD_DELETEBOX 148
#define IDD_BUSDETAILSSHEET 151
#define IDD_WRITETEXT 155
#define IDD_TRANSFORMERP1 160
#define IDB_BITMAP1 161
#define IDD_GENERATOR1 162
#define IDD_GENSTEAM 163
#define IDD_GENHYDRO 164
#define IDD_IEEE 165
#define IDD_GENSTATIC 166
#define IDC_BUSNO 1001
#define IDC_COMBO1 1002
#define IDC_EDIT2 1003
#define IDC_EDIT3 1004
#define IDC_EDIT4 1005
#define IDC_PV 1008
#define IDC_SLACK 1009
#define IDC_PQ 1010
#define IDC_EDIT1 1013
#define IDC_EDIT5 1014
#define IDC_EDIT6 1015
#define IDC_EDIT8 1017
#define IDC_EDIT9 1018
#define IDC_EDIT10 1019
#define IDC_EDIT7 1020
#define IDC_VERTICAL 1021
#define IDC_HORIZONTAL 1022
#define IDC_LEFT 1023
#define IDC_RIGHT 1024
#define IDC_UP 1025
#define IDC_DOWN 1026
#define IDC_RADIO1 1027
#define IDC_RADIO2 1028
#define IDC_RADIO3 1029
#define IDC_RADIO4 1030
#define IDC_RADIO5 1031
#define IDC_RADIO6 1032
#define IDC_RADIO7 1033
#define IDC_RADIO8 1034
#define IDC_EDIT11 1037
#define IDC_EDIT12 1038
#define IDC_EDIT13 1039
#define IDC_RADIO9 1040
#define IDC_RADIO10 1041
#define IDC_RADIO11 1042
#define IDC_EDIT14 1043
#define IDC_EDIT15 1044
#define IDC_EDIT16 1045
#define IDC_EDIT17 1046
#define IDC_EDIT18 1047
#define IDC_EDIT19 1048
#define IDC_EDIT20 1049
#define ID_BUS 32771
#define ID_GENERATOR 32772
#define ID_CAPACITOR 32773
#define ID_LOAD 32774
#define ID_LINE 32775
#define ID_TRANSFORMER 32776
#define ID_TEXT 32783
#define ID_TOOLS_ADDBUS 32785
#define ID_TOOLS_ADDGENERATOR 32786
#define ID_TOOLS_ADDCAPACITOR 32787
#define ID_TOOLS_ADDTRANSFORMER 32788
#define ID_TOOLS_ADDLOAD 32789
#define ID_TOOLS_ADDLINE 32790
#define ID_TOOLS_ADDTEXT 32791
#define ID_DELETE_LINE 32792
#define ID_DELETE_LOAD 32793
#define ID_DELETE_BUS 32794
#define ID_DELETE_TRANSFORMER 32795
#define ID_DELETE_CAPACITOR 32796
#define ID_DELETE_GENERATOR 32797
#define ID_DETAILS_BUS 32798
#define ID_DETAILS_CAPACITOR 32799
#define ID_DETAILS_GENERATOR 32800
#define ID_DETAILS_LINE 32801
#define ID_DETAILS_LOAD 32802
#define ID_DETAILS_TRANSFORMER 32803
#define ID_HELP_HELPCONTEXT 32804
#endif
#endif
error C2065: 'IDD_BUSPROPERTYSHEET' : undeclared identifier
and similar 25 more errors now please help!!
I can't say yet why you're getting this error, but to your previous question:
The values here simply need to be unique values. While the depicting that they can be random values is technically accurate, the convention is to create a sequential list, and there are some values reserved for the OS.
I don't notice any duplicates here, but the error you're indicating suggests the resource.h isn't being included.
This
#ifdef APSTUDIO_INVOKED
Means the list isn't going to be 'read' unless this is defined. I assume this was automatically placed there, but if you're using a value from the list and it isn't being 'seen' because this inclusion guard of the code 'hides' this section, some solution to that must be found.
can u please tell me in which file of my project is my resources.h included??Probably what i think is in .rc file if am correct then how can i change my .rc file to include some other file. I need this since I cant have 2 resources file in the same directory but due to some resason i have to keep both the files at some place.