Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SetCheck() for checkbox in MFC GridControl 2.7 Pin
Richard MacCutchan21-Jan-19 22:43
mveRichard MacCutchan21-Jan-19 22:43 
Questioncourse distribution system project in algorithm source code? Pin
Member 1412522921-Jan-19 10:07
Member 1412522921-Jan-19 10:07 
GeneralRe: course distribution system project in algorithm source code? Pin
David Crow21-Jan-19 10:27
David Crow21-Jan-19 10:27 
GeneralRe: course distribution system project in algorithm source code? Pin
CPallini21-Jan-19 10:35
mveCPallini21-Jan-19 10:35 
GeneralRe: course distribution system project in algorithm source code? Pin
Joe Woodbury21-Jan-19 10:37
professionalJoe Woodbury21-Jan-19 10:37 
AnswerRe: course distribution system project in algorithm source code? Pin
Stefan_Lang21-Jan-19 21:16
Stefan_Lang21-Jan-19 21:16 
QuestionChoosing my next Programming Language Pin
HS_C_Student21-Jan-19 2:49
HS_C_Student21-Jan-19 2:49 
AnswerRe: Choosing my next Programming Language Pin
Richard MacCutchan21-Jan-19 4:57
mveRichard MacCutchan21-Jan-19 4:57 
AnswerRe: Choosing my next Programming Language Pin
Joe Woodbury21-Jan-19 6:57
professionalJoe Woodbury21-Jan-19 6:57 
AnswerRe: Choosing my next Programming Language PinPopular
Stefan_Lang21-Jan-19 22:03
Stefan_Lang21-Jan-19 22:03 
GeneralRe: Choosing my next Programming Language Pin
Richard MacCutchan21-Jan-19 22:41
mveRichard MacCutchan21-Jan-19 22:41 
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 

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.