Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++ 1.52 error Pin
jnhemley25-Jan-07 8:33
jnhemley25-Jan-07 8:33 
AnswerRe: Visual C++ 1.52 error Pin
Mike O'Neill26-Jan-07 10:42
Mike O'Neill26-Jan-07 10:42 
QuestionIterating over Dialog? Pin
bosfan25-Jan-07 5:38
bosfan25-Jan-07 5:38 
AnswerRe: Iterating over Dialog? Pin
Ravi Bhavnani25-Jan-07 5:41
professionalRavi Bhavnani25-Jan-07 5:41 
GeneralRe: Iterating over Dialog? Pin
bosfan25-Jan-07 5:48
bosfan25-Jan-07 5:48 
AnswerRe: Iterating over Dialog? Pin
Roger Stoltz25-Jan-07 6:05
Roger Stoltz25-Jan-07 6:05 
AnswerRe: Iterating over Dialog? Pin
#realJSOP25-Jan-07 8:26
professional#realJSOP25-Jan-07 8:26 
QuestionUgh! Resource problems and 'Clean-up' tools Pin
Like2Byte25-Jan-07 3:25
Like2Byte25-Jan-07 3:25 
Hi,

OK, here's the situation: Inherit Code. Shown menu item (an existing form) that needs to have a new control added to it so a user can create a new directory to store their files in. This previously existing form allows me to either cancel or hit OK. No problem. So I naively add an edit control and recompile the code. The form displays and I press cancel(or OK, whatever). Assertion error. So I go looking.

I discover I'm having a problem where the resource files I create are not creating unique identifiers for each control. I've ruled out the logic behind any of the existing code; because all I have to do it add the control to see these errors.

For instance, my resource.h file contains many, many, many entries. Some of the values for the entries have the same numerical constants( See 1016, 1017, & 1018):

<br />
//snip<br />
#define IDC_DTC_CNT_LBL                 1008<br />
#define IDC_DTC_CNT_VALUE               1009<br />
#define IDC_CRNT_DTC                    1010<br />
#define IDC_PNDG_BUTTON                 1011<br />
#define IDC_FREEZE_FRAME                1012<br />
#define IDC_Meter                       1015<br />
#define IDC_COMBO1                      1016<br />
#define IDC_SPECIFIC_CODE_COMBO         1016<br />
#define IDC_TRIGGER_COMBO               1016<br />
#define IDC_COMBO_CATEGORY              1016<br />
#define IDC_CMBO_APPLICATION            1016<br />
#define IDC_COMBO3                      1017<br />
#define IDC_COMBO_DOWN                  1017<br />
#define IDC_MIN_COMBO                   1017<br />
#define IDC_COMBO2                      1018<br />
#define IDC_COMBO_APPLICATION           1018<br />
#define IDC_CMBO_CATEGORY               1018<br />
#define IDC_DataList                    1019<br />
#define IDC_O2_LIST                     1021<br />
#define IDC_BUTTON1                     1022<br />
#define IDC_GET_DTC                     1022<br />
#define IDC_BTN_ADD                     1022<br />
#define IDC_BTN_ITEMCHECK               1022<br />
#define IDC_BUTTON2                     1023<br />
#define IDC_BTN_REMOVE                  1023<br />
#define IDC_BUTTON3                     1024<br />
#define IDC_BTN_REMOVEALL               1024<br />
#define IDC_METER_UP                    1026<br />
#define IDC_METER_DOWN                  1027<br />
//and many, many more<br />
//snip<br />


So, the simple answer is to clean it up, right? Not so fast, quick draw. I did that( renumber them start from 100, then starting at 1000 - for their appropriate resource-section.) and now the form isn't even displayed before the assertion errors happen. I click the menu-item and BAM - ASSERTion city.

It seems to me that there are cross-references to other resources in other resource files.

Are there any tools to clean up resource issues like this with VS? Now, here's the kicker: I'm using eVC 4.0 SP4. Yeah, me. Hmmm | :|

Props to those who reply. Smile | :)
AnswerRe: Ugh! Resource problems and 'Clean-up' tools Pin
Maximilien25-Jan-07 4:17
Maximilien25-Jan-07 4:17 
GeneralRe: Ugh! Resource problems and 'Clean-up' tools Pin
Like2Byte25-Jan-07 4:18
Like2Byte25-Jan-07 4:18 
QuestionReturning an error from service stop Pin
sharon_cds25-Jan-07 2:29
sharon_cds25-Jan-07 2:29 
AnswerRe: Returning an error from service stop Pin
Mark Salsbery25-Jan-07 5:56
Mark Salsbery25-Jan-07 5:56 
QuestionProblem! Pin
baby_fong8225-Jan-07 2:20
baby_fong8225-Jan-07 2:20 
AnswerRe: Problem! Pin
Mark Salsbery25-Jan-07 5:58
Mark Salsbery25-Jan-07 5:58 
Questionhow to Build a reguler Dll( unicode competable) in vc++ Pin
singh_nav25-Jan-07 2:15
singh_nav25-Jan-07 2:15 
QuestionRe: how to Build a reguler Dll( unicode competable) in vc++ Pin
prasad_som25-Jan-07 2:57
prasad_som25-Jan-07 2:57 
AnswerRe: how to Build a reguler Dll( unicode competable) in vc++ Pin
singh_nav29-Jan-07 0:31
singh_nav29-Jan-07 0:31 
QuestionDrawing with dll Pin
mk7925-Jan-07 0:56
mk7925-Jan-07 0:56 
QuestionRe: Drawing with dll Pin
prasad_som25-Jan-07 0:59
prasad_som25-Jan-07 0:59 
AnswerRe: Drawing with dll Pin
CPallini25-Jan-07 1:37
mveCPallini25-Jan-07 1:37 
AnswerRe: Drawing with dll Pin
Hamid_RT25-Jan-07 21:00
Hamid_RT25-Jan-07 21:00 
QuestionTo find difference dates Pin
johnalek25-Jan-07 0:50
johnalek25-Jan-07 0:50 
QuestionRe: To find difference dates Pin
prasad_som25-Jan-07 0:57
prasad_som25-Jan-07 0:57 
AnswerRe: To find difference dates Pin
johnalek25-Jan-07 1:20
johnalek25-Jan-07 1:20 
QuestionRe: To find difference dates Pin
prasad_som25-Jan-07 1:46
prasad_som25-Jan-07 1:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.