Click here to Skip to main content
16,011,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionconvert path to HTREEITEM [modified] Pin
revanth198531-Aug-07 19:08
revanth198531-Aug-07 19:08 
AnswerRe: path to HTREEITEM Pin
Hamid_RT31-Aug-07 21:27
Hamid_RT31-Aug-07 21:27 
GeneralRe: path to HTREEITEM Pin
revanth198531-Aug-07 22:27
revanth198531-Aug-07 22:27 
GeneralRe: path to HTREEITEM Pin
Hamid_RT1-Sep-07 0:56
Hamid_RT1-Sep-07 0:56 
AnswerRe: convert path to HTREEITEM Pin
Gary R. Wheeler2-Sep-07 4:42
Gary R. Wheeler2-Sep-07 4:42 
Questionresource,h control definition problem Pin
Caudata31-Aug-07 17:40
Caudata31-Aug-07 17:40 
AnswerRe: resource,h control definition problem Pin
chandu00431-Aug-07 18:15
chandu00431-Aug-07 18:15 
GeneralRe: resource.h control definition problem Pin
Caudata1-Sep-07 14:32
Caudata1-Sep-07 14:32 
Here is my Resource.h:

<small>//{{NO_DEPENDENCIES}}<br />
// Microsoft Developer Studio generated include file.<br />
// Used by WinSS.rc<br />
//<br />
#define IDM_ABOUTBOX                    0x0010<br />
#define IDD_ABOUTBOX                    100<br />
#define IDS_ABOUTBOX                    101<br />
#define IDD_WINSS_DIALOG                102<br />
#define IDR_MAINFRAME                   128<br />
#define IDI_POOKA_LOGO                  130<br />
<br />
#define IDC_A1                          1000<br />
#define IDC_A2                          1001<br />
#define IDC_A3                          1002<br />
#define IDC_A4                          1003<br />
#define IDC_A5                          1004<br />
#define IDC_A6                          1005<br />
#define IDC_A7                          1006<br />
#define IDC_A8                          1007<br />
#define IDC_A9                          1008<br />
<br />
#define IDC_B1                          1010<br />
#define IDC_B2                          1011<br />
#define IDC_B3                          1012<br />
#define IDC_B4                          1013<br />
#define IDC_B5                          1014<br />
#define IDC_B6                          1015<br />
#define IDC_B7                          1016<br />
#define IDC_B8                          1017<br />
#define IDC_B9                          1018<br />
<br />
#define IDC_C1                          1020<br />
#define IDC_C2                          1021<br />
#define IDC_C3                          1022<br />
#define IDC_C4                          1023<br />
#define IDC_C5                          1024<br />
#define IDC_C6                          1025<br />
#define IDC_C7                          1026<br />
#define IDC_C8                          1027<br />
#define IDC_C9                          1028<br />
<br />
#define IDC_D1                          1030<br />
#define IDC_D2                          1031<br />
#define IDC_D3                          1032<br />
#define IDC_D4                          1033<br />
#define IDC_D5                          1034<br />
#define IDC_D6                          1035<br />
#define IDC_D7                          1036<br />
#define IDC_D8                          1037<br />
#define IDC_D9                          1038<br />
<br />
#define IDC_E1                          1040<br />
#define IDC_E2                          1041<br />
#define IDC_E3                          1042<br />
#define IDC_E4                          1043<br />
#define IDC_E5                          1044<br />
#define IDC_E6                          1045<br />
#define IDC_E7                          1046<br />
#define IDC_E8                          1047<br />
#define IDC_E9                          1048<br />
<br />
#define IDC_F1                          1050<br />
#define IDC_F2                          1051<br />
#define IDC_F3                          1052<br />
#define IDC_F4                          1053<br />
#define IDC_F5                          1054<br />
#define IDC_F6                          1055<br />
#define IDC_F7                          1056<br />
#define IDC_F8                          1057<br />
#define IDC_F9                          1058<br />
<br />
#define IDC_G1                          1060<br />
#define IDC_G2                          1061<br />
#define IDC_G3                          1062<br />
#define IDC_G4                          1063<br />
#define IDC_G5                          1064<br />
#define IDC_G6                          1065<br />
#define IDC_G7                          1066<br />
#define IDC_G8                          1067<br />
#define IDC_G9                          1068<br />
<br />
#define IDC_H1                          1070<br />
#define IDC_H2                          1071<br />
#define IDC_H3                          1072<br />
#define IDC_H4                          1073<br />
#define IDC_H5                          1074<br />
#define IDC_H6                          1075<br />
#define IDC_H7                          1076<br />
#define IDC_H8                          1077<br />
#define IDC_H9                          1078<br />
<br />
#define IDC_I1                          1080<br />
#define IDC_I2                          1081<br />
#define IDC_I3                          1082<br />
#define IDC_I4                          1083<br />
#define IDC_I5                          1084<br />
#define IDC_I6                          1085<br />
#define IDC_I7                          1086<br />
#define IDC_I8                          1087<br />
#define IDC_I9                          1088<br />
<br />
#define IDC_ABOUT_BUTTON                2000<br />
#define IDC_CONSOLE_BUTTON              2001<br />
#define IDCLEAR                         2002<br />
#define ID_CLEAR_BUTTON                 2002<br />
#define IDSOLVE                         2003<br />
#define ID_SOLVE_BUTTON                 2003<br />
#define IDC_POOKA_BYLINE                2004<br />
#define IDC_POOKA_LOGO                  2005<br />
<br />
// Next default values for new objects<br />
// <br />
#ifdef APSTUDIO_INVOKED<br />
#ifndef APSTUDIO_READONLY_SYMBOLS<br />
#define _APS_NEXT_RESOURCE_VALUE        134<br />
#define _APS_NEXT_COMMAND_VALUE         32771<br />
#define _APS_NEXT_CONTROL_VALUE         2000<br />
#define _APS_NEXT_SYMED_VALUE           101<br />
#endif<br />
#endif</small>


Here is the code from the ProjectNameDlg.cpp file meant to retreive the data from the 9x9 array of combo box controls:

<small>    CString CSarray[9][9];<br />
<br />
	int i,j; // (i = 0..9), (j = A .. I)<br />
// These values of (a,b) fail with the error Debug Assertion Failed<br />
// meaning that their values were incorrect or out of bounds<br />
<br />
//	int a= 6;<br />
//	int b= 7;<br />
<br />
//	int a= 6;<br />
//	int b= 8;<br />
<br />
//	int a= 7;<br />
//	int b= 6;<br />
<br />
//	int a= 7;<br />
//	int b= 7;<br />
<br />
//	int a= 7;<br />
//	int b= 8;<br />
<br />
//	int a= 8;<br />
//	int b= 6;<br />
<br />
//	int a= 8;<br />
//	int b= 7;<br />
<br />
//	int a= 8;<br />
//	int b= 8;<br />
<br />
	int a= 6;<br />
	int b= 6;<br />
<br />
	for (i=0; i<9; i++) {<br />
		for (j=0; j<9; j++)<br />
			{<br />
//			DDX_Text(pDX, (1000+(10*b)+a), CSarray[i][j]);<br />
			DDX_Text(pDX, (1000+(10*j)+i), CSarray[i][j]);<br />
			}<br />
		}<br />
         }<br />
<br />
</small>


I am getting a "Debug Assertion Failure! (File:dlgdata.cpp line 43 - which doesn't exist)" for the 8 combo boxes commented above. I cannot find a logical reason why these controls cause this failure when none of the others do. Is there some limitation of Visual c++ v6.0 on the number of control boxes allowed?
AnswerRe: resource,h control definition problem Pin
Caudata1-Sep-07 18:32
Caudata1-Sep-07 18:32 
QuestionTrouble with const Pin
Leslie Sanford31-Aug-07 13:19
Leslie Sanford31-Aug-07 13:19 
AnswerRe: Trouble with const Pin
Mark Salsbery31-Aug-07 13:26
Mark Salsbery31-Aug-07 13:26 
GeneralRe: Trouble with const Pin
Leslie Sanford31-Aug-07 13:41
Leslie Sanford31-Aug-07 13:41 
GeneralRe: Trouble with const Pin
Mark Salsbery31-Aug-07 13:52
Mark Salsbery31-Aug-07 13:52 
QuestionRe: Trouble with const Pin
Mark Salsbery31-Aug-07 13:54
Mark Salsbery31-Aug-07 13:54 
AnswerRe: Trouble with const Pin
Leslie Sanford31-Aug-07 14:22
Leslie Sanford31-Aug-07 14:22 
GeneralRe: Trouble with const Pin
Mark Salsbery31-Aug-07 15:36
Mark Salsbery31-Aug-07 15:36 
GeneralRe: Trouble with const Pin
Leslie Sanford31-Aug-07 16:02
Leslie Sanford31-Aug-07 16:02 
GeneralRe: Trouble with const Pin
Mark Salsbery1-Sep-07 7:05
Mark Salsbery1-Sep-07 7:05 
AnswerRe: Trouble with const Pin
Leslie Sanford31-Aug-07 15:04
Leslie Sanford31-Aug-07 15:04 
GeneralRe: Trouble with const Pin
Mark Salsbery31-Aug-07 15:33
Mark Salsbery31-Aug-07 15:33 
QuestionHow ot verify whether or not a user is a member of a local or domain group? Pin
Homayoun231-Aug-07 13:12
Homayoun231-Aug-07 13:12 
QuestionMFC Control Design Pattern Question Pin
@largeinsd31-Aug-07 10:56
@largeinsd31-Aug-07 10:56 
QuestionCStdioFile issue Pin
__yash__31-Aug-07 10:40
professional__yash__31-Aug-07 10:40 
AnswerRe: CStdioFile issue Pin
__yash__31-Aug-07 10:48
professional__yash__31-Aug-07 10:48 
QuestionCListCtrl::SetBkImage(): how disable the image scroll? Pin
Cris31-Aug-07 8:27
Cris31-Aug-07 8:27 

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.