Resource.h File Checking
-
I was doing a lot of cut and paste on several dialogs, but then I look at the resource.h file, some defines have the same value. Are they any programs to check this file and correct the problems. See sample below:-
#define IDC_POWER_LABEL 1742 #define IDC_MAIN_RX_SQUELCH_LABEL 1743 #define IDC_MODULATION_LABEL 1744 #define IDC_COMBO1 1745 #define IDC_COMBO_MODULATION 1746 #define IDC_START_IBIT_LABEL 1746 #define IDC_GUARD_RX_LABEL 1747 #define IDC_TEST_TYPE_LABEL 1747 #define IDC_GUARD_RX_BUTTON 1748 #define IDC_IBIT_STATUS 1748 #define IDC_GUARD_FREQ_LABEL 1749 #define IDC_TEST_TYPE_STATUS 1749 #define IDC_COMBO_GUARD_FREQ 1750 #define IDC_WARNINGS_LABEL 1750 #define IDC_MARITINE_SHIP_SHORE_LABEL 1751 #define IDC_WARNINGS_STATUS 1751 #define IDC_SHIP_SHORE_BUTTON 1752 #define IDC_ERRORS_EXIST_LABEL 1752 #define IDC_MARITIME_INT_USA_LABEL 1753 #define IDC_ERRORS_EXIST_STATUS 1753 #define IDC_INT_USA_BUTTON 1754 #define IDC_SRUS_ERRORS_LABEL 1754
Help! -
I was doing a lot of cut and paste on several dialogs, but then I look at the resource.h file, some defines have the same value. Are they any programs to check this file and correct the problems. See sample below:-
#define IDC_POWER_LABEL 1742 #define IDC_MAIN_RX_SQUELCH_LABEL 1743 #define IDC_MODULATION_LABEL 1744 #define IDC_COMBO1 1745 #define IDC_COMBO_MODULATION 1746 #define IDC_START_IBIT_LABEL 1746 #define IDC_GUARD_RX_LABEL 1747 #define IDC_TEST_TYPE_LABEL 1747 #define IDC_GUARD_RX_BUTTON 1748 #define IDC_IBIT_STATUS 1748 #define IDC_GUARD_FREQ_LABEL 1749 #define IDC_TEST_TYPE_STATUS 1749 #define IDC_COMBO_GUARD_FREQ 1750 #define IDC_WARNINGS_LABEL 1750 #define IDC_MARITINE_SHIP_SHORE_LABEL 1751 #define IDC_WARNINGS_STATUS 1751 #define IDC_SHIP_SHORE_BUTTON 1752 #define IDC_ERRORS_EXIST_LABEL 1752 #define IDC_MARITIME_INT_USA_LABEL 1753 #define IDC_ERRORS_EXIST_STATUS 1753 #define IDC_INT_USA_BUTTON 1754 #define IDC_SRUS_ERRORS_LABEL 1754
Help!I had one problem with same IDs like your code so my suggestion use of different values.:)
WhiteSky
-
I was doing a lot of cut and paste on several dialogs, but then I look at the resource.h file, some defines have the same value. Are they any programs to check this file and correct the problems. See sample below:-
#define IDC_POWER_LABEL 1742 #define IDC_MAIN_RX_SQUELCH_LABEL 1743 #define IDC_MODULATION_LABEL 1744 #define IDC_COMBO1 1745 #define IDC_COMBO_MODULATION 1746 #define IDC_START_IBIT_LABEL 1746 #define IDC_GUARD_RX_LABEL 1747 #define IDC_TEST_TYPE_LABEL 1747 #define IDC_GUARD_RX_BUTTON 1748 #define IDC_IBIT_STATUS 1748 #define IDC_GUARD_FREQ_LABEL 1749 #define IDC_TEST_TYPE_STATUS 1749 #define IDC_COMBO_GUARD_FREQ 1750 #define IDC_WARNINGS_LABEL 1750 #define IDC_MARITINE_SHIP_SHORE_LABEL 1751 #define IDC_WARNINGS_STATUS 1751 #define IDC_SHIP_SHORE_BUTTON 1752 #define IDC_ERRORS_EXIST_LABEL 1752 #define IDC_MARITIME_INT_USA_LABEL 1753 #define IDC_ERRORS_EXIST_STATUS 1753 #define IDC_INT_USA_BUTTON 1754 #define IDC_SRUS_ERRORS_LABEL 1754
Help!Andy202 wrote:
some defines have the same value.
it doesn't matter if the relative controls are on different dialogs...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
I had one problem with same IDs like your code so my suggestion use of different values.:)
WhiteSky
WhiteSky wrote:
...my suggestion use of different values.
No kidding! He already wants unique numbers. His question was about a program to do that for him. :rolleyes:
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
WhiteSky wrote:
...my suggestion use of different values.
No kidding! He already wants unique numbers. His question was about a program to do that for him. :rolleyes:
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
I think ResOrg ( found here on CP ) can do that.
Maximilien Lincourt Your Head A Splode - Strong Bad
-
I think ResOrg ( found here on CP ) can do that.
Maximilien Lincourt Your Head A Splode - Strong Bad
Maximilien wrote:
I think ResOrg...
Yes, I'm already aware of it.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Andy202 wrote:
some defines have the same value.
it doesn't matter if the relative controls are on different dialogs...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-
Maximilien wrote:
I think ResOrg...
Yes, I'm already aware of it.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Has this program been updated for VS 2005. I had problems with it om VS 2003, does most of the things wright but gets IDD for the Aboutbox and Menu wrong. Andy.
grahamfff
Grahamfff wrote:
Has this program been updated for VS 2005.
Wouldn't know. I don't use it.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Andy202 wrote:
some defines have the same value.
it doesn't matter if the relative controls are on different dialogs...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
Unless you want to map the control ID to a help file context using MakeHm or something similar, in which case you want ALL controls to have unique ID within the application - at least all of them that will have context-sensitive help. Maybe that is why he wants them all to be different.
Any sufficiently gross incompetence is nearly indistinguishable from malice.