Click here to Skip to main content
15,884,018 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Choosing my next Programming Language Pin
Member 1412742230-Jan-19 4:36
Member 1412742230-Jan-19 4:36 
QuestionOPC DA3 Pin
D.Manivelan20-Jan-19 22:21
D.Manivelan20-Jan-19 22:21 
AnswerRe: OPC DA3 Pin
Richard MacCutchan20-Jan-19 22:56
mveRichard MacCutchan20-Jan-19 22:56 
QuestionAdd checkbox in second column in dynamically created ListCtrl Pin
Anu_Bala20-Jan-19 18:19
Anu_Bala20-Jan-19 18:19 
AnswerRe: Add checkbox in second column in dynamically created ListCtrl Pin
Victor Nijegorodov20-Jan-19 20:45
Victor Nijegorodov20-Jan-19 20:45 
AnswerRe: Add checkbox in second column in dynamically created ListCtrl Pin
Richard MacCutchan20-Jan-19 21:24
mveRichard MacCutchan20-Jan-19 21:24 
QuestionHow to use Pin
Member 1412420320-Jan-19 15:46
Member 1412420320-Jan-19 15:46 
QuestionUsing hex in an array and "scanning" for it fails. Pin
Vaclav_20-Jan-19 14:51
Vaclav_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.



C++
#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}
			};





C++
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
Vaclav_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
Vaclav_21-Jan-19 6:42 
QuestionComplex multidimensional array in C++ Pin
Vaclav_19-Jan-19 18:27
Vaclav_19-Jan-19 18:27 
AnswerRe: Complex multidimensional array in C++ Pin
Richard MacCutchan19-Jan-19 21:34
mveRichard 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
mveRichard 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
Vaclav_20-Jan-19 4:39 
GeneralRe: Complex multidimensional array in C++ Pin
Richard MacCutchan20-Jan-19 5:06
mveRichard MacCutchan20-Jan-19 5:06 
GeneralRe: Complex multidimensional array in C++ Pin
Vaclav_20-Jan-19 7:15
Vaclav_20-Jan-19 7:15 
GeneralRe: Complex multidimensional array in C++ Pin
k505420-Jan-19 8:47
mvek505420-Jan-19 8:47 
GeneralRe: Complex multidimensional array in C++ Pin
k505420-Jan-19 8:52
mvek505420-Jan-19 8:52 
GeneralRe: Complex multidimensional array in C++ Pin
Vaclav_21-Jan-19 6:56
Vaclav_21-Jan-19 6:56 
GeneralRe: Complex multidimensional array in C++ Pin
Richard MacCutchan21-Jan-19 22:36
mveRichard MacCutchan21-Jan-19 22:36 
AnswerRe: Complex multidimensional array in C++ Pin
k505420-Jan-19 4:54
mvek505420-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.