Click here to Skip to main content
15,917,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionA strange CListCtrl Bug ? Pin
brraj22-Apr-03 19:18
brraj22-Apr-03 19:18 
GeneralButton with Icon on it Pin
Exceter22-Apr-03 18:59
Exceter22-Apr-03 18:59 
Generala typical problem Pin
Prog Mmer22-Apr-03 18:52
Prog Mmer22-Apr-03 18:52 
GeneralRe: a typical problem Pin
PJ Arends22-Apr-03 19:29
professionalPJ Arends22-Apr-03 19:29 
GeneralRe: a typical problem Pin
Prog Mmer22-Apr-03 21:43
Prog Mmer22-Apr-03 21:43 
GeneralRe: a typical problem Pin
Prog Mmer22-Apr-03 21:46
Prog Mmer22-Apr-03 21:46 
QuestionHow to highlight items in CTreeCtrl? Pin
Charles Liu22-Apr-03 18:40
Charles Liu22-Apr-03 18:40 
AnswerRe: How to highlight items in CTreeCtrl? Pin
Anonymous22-Apr-03 20:13
Anonymous22-Apr-03 20:13 
GeneralHighlight items in CTreeCtrl Pin
Charles Liu22-Apr-03 18:37
Charles Liu22-Apr-03 18:37 
GeneralRe: Highlight items in CTreeCtrl Pin
Rage22-Apr-03 20:29
professionalRage22-Apr-03 20:29 
GeneralAny body know error 1053 while starting service. Pin
harinath22-Apr-03 18:17
professionalharinath22-Apr-03 18:17 
GeneralRe: Any body know error 1053 while starting service. Pin
harinath22-Apr-03 18:48
professionalharinath22-Apr-03 18:48 
GeneralRe: Any body know error 1053 while starting service. Pin
Anders Molin23-Apr-03 0:56
professionalAnders Molin23-Apr-03 0:56 
GeneralRe: Any body know error 1053 while starting service. Pin
harinath23-Apr-03 1:31
professionalharinath23-Apr-03 1:31 
GeneralMatrices Pin
Albedo22-Apr-03 16:42
Albedo22-Apr-03 16:42 
GeneralRe: Matrices Pin
imsniper23-Apr-03 0:00
imsniper23-Apr-03 0:00 
GeneralRe: Matrices Pin
Albedo23-Apr-03 3:29
Albedo23-Apr-03 3:29 
GeneralRe: Matrices Pin
David Chamberlain23-Apr-03 9:28
David Chamberlain23-Apr-03 9:28 
Since you haven't given much detail, here is just a wild stab. I am assuming you are thinking in your code not of "row" and "column" but perhaps as "x" and "y". What you have written ("buttonArray[10][20]") we know to be 10 rows of 20 columns, but if you think of it as "x" and "y" you may get your loop indexes reversed.

Since "x" and "y" relate to a Cartesian coordinate system, the "x" axis is typically the horizontal axis, but it actually measures columns (which increase horizontally). Likewise, "y" is the vertical axis and it measures rows.

Therefore, and again this is just a wild stab, if you are programming using "x" and "y" as your loop index variables, you are going to want to reference elements in the array as "buttonArray[y][x]" just as you would if you were using "row" and "col" (buttonArray[row][col]).

What is it that is telling you that the array is actually [20][10] instead of [10][20]?

Dave

"You can say that again." -- Dept. of Redundancy Dept.
GeneralData packing libraries Pin
progman22-Apr-03 13:50
progman22-Apr-03 13:50 
GeneralRe: Data packing libraries Pin
imsniper23-Apr-03 21:34
imsniper23-Apr-03 21:34 
GeneralProblem drawing icon with shadow in XP Pin
Mathias S.22-Apr-03 13:22
Mathias S.22-Apr-03 13:22 
GeneralRe: Problem drawing icon with shadow in XP - Solved! Pin
Mathias S.22-Apr-03 22:29
Mathias S.22-Apr-03 22:29 
Generalfloat number comparision Pin
act_x22-Apr-03 11:52
act_x22-Apr-03 11:52 
GeneralRe: float number comparision Pin
Maximilien22-Apr-03 12:03
Maximilien22-Apr-03 12:03 
GeneralRe: float number comparision Pin
Anonymous22-Apr-03 12:21
Anonymous22-Apr-03 12:21 

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.