Click here to Skip to main content
14,272,251 members

C / C++ / MFC

 
AnswerRe: Choosing my next Programming Language Pin
Member 1412742230-Jan-19 4:36
memberMember 1412742230-Jan-19 4:36 
QuestionOPC DA3 Pin
D.Manivelan20-Jan-19 22:21
memberD.Manivelan20-Jan-19 22:21 
AnswerRe: OPC DA3 Pin
Richard MacCutchan20-Jan-19 22:56
protectorRichard MacCutchan20-Jan-19 22:56 
QuestionAdd checkbox in second column in dynamically created ListCtrl Pin
Anu_Bala20-Jan-19 18:19
memberAnu_Bala20-Jan-19 18:19 
AnswerRe: Add checkbox in second column in dynamically created ListCtrl Pin
Victor Nijegorodov20-Jan-19 20:45
memberVictor Nijegorodov20-Jan-19 20:45 
AnswerRe: Add checkbox in second column in dynamically created ListCtrl Pin
Richard MacCutchan20-Jan-19 21:24
protectorRichard MacCutchan20-Jan-19 21:24 
QuestionHow to use Pin
Member 1412420320-Jan-19 15:46
memberMember 1412420320-Jan-19 15:46 
QuestionUsing hex in an array and "scanning" for it fails. Pin
Vaclav_20-Jan-19 14:51
memberVaclav_20-Jan-19 14:51 
I am going nuts with this test code.
Two dimensional array and my test objective is to find matching first element in the arrays.

It works fine "scanning " for 0xA as it should , goes crazy when I try to look for 0xB0.
I hope is is something stupid I am overlooking.

Hope any extra pairs of eyes will spot the problem.



#define COMMAND_LIST 16
	int8_t ILI9341_Command_List[][COMMAND_LIST] = {
			{ 0 },
			{ 1 },
			{ 4 },
			{ 6, 7 , 8 },
			{7},
			{0xA,8,9,10,11,12},
			{0xB0,8,9,10,11,12},
			{9}
			};





uint8_t ProcessCommand = 0xB0; // 0xA work fine 0xB0 fails 
	int index = 0;
	do {
		cout << "SCAN ProcessCommand " << hex << +ProcessCommand << "@ index "
				<< dec << +index << endl;
		
	} while (ILI9341_Command_List[index++][0] != ProcessCommand);

AnswerRe: Using hex in an array and "scanning" for it fails. Pin
Peter_in_278020-Jan-19 15:27
professionalPeter_in_278020-Jan-19 15:27 
GeneralRe: Using hex in an array and "scanning" for it fails. SOLVED Pin
Vaclav_20-Jan-19 16:57
memberVaclav_20-Jan-19 16:57 
GeneralRe: Using hex in an array and "scanning" for it fails. SOLVED Pin
CPallini20-Jan-19 20:32
mveCPallini20-Jan-19 20:32 
GeneralRe: Using hex in an array and "scanning" for it fails. SOLVED Pin
Vaclav_21-Jan-19 6:42
memberVaclav_21-Jan-19 6:42 
QuestionComplex multidimensional array in C++ Pin
Vaclav_19-Jan-19 18:27
memberVaclav_19-Jan-19 18:27 
AnswerRe: Complex multidimensional array in C++ Pin
Richard MacCutchan19-Jan-19 21:34
protectorRichard MacCutchan19-Jan-19 21:34 
GeneralRe: Complex multidimensional array in C++ Pin
Daniel Pfeffer19-Jan-19 21:48
professionalDaniel Pfeffer19-Jan-19 21:48 
GeneralRe: Complex multidimensional array in C++ Pin
Richard MacCutchan19-Jan-19 22:14
protectorRichard MacCutchan19-Jan-19 22:14 
GeneralRe: Complex multidimensional array in C++ Pin
Daniel Pfeffer19-Jan-19 22:17
professionalDaniel Pfeffer19-Jan-19 22:17 
GeneralRe: Complex multidimensional array in C++ Pin
Vaclav_20-Jan-19 4:39
memberVaclav_20-Jan-19 4:39 
GeneralRe: Complex multidimensional array in C++ Pin
Richard MacCutchan20-Jan-19 5:06
protectorRichard MacCutchan20-Jan-19 5:06 
GeneralRe: Complex multidimensional array in C++ Pin
Vaclav_20-Jan-19 7:15
memberVaclav_20-Jan-19 7:15 
GeneralRe: Complex multidimensional array in C++ Pin
k505420-Jan-19 8:47
memberk505420-Jan-19 8:47 
GeneralRe: Complex multidimensional array in C++ Pin
k505420-Jan-19 8:52
memberk505420-Jan-19 8:52 
GeneralRe: Complex multidimensional array in C++ Pin
Vaclav_21-Jan-19 6:56
memberVaclav_21-Jan-19 6:56 
GeneralRe: Complex multidimensional array in C++ Pin
Richard MacCutchan21-Jan-19 22:36
protectorRichard MacCutchan21-Jan-19 22:36 
AnswerRe: Complex multidimensional array in C++ Pin
k505420-Jan-19 4:54
memberk505420-Jan-19 4:54 

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.