Click here to Skip to main content
16,007,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralC++ Question. Pin
WREY6-Feb-04 7:09
WREY6-Feb-04 7:09 
GeneralRe: C++ Question. Pin
David Crow6-Feb-04 7:28
David Crow6-Feb-04 7:28 
GeneralRe: C++ Question. Pin
WREY6-Feb-04 8:01
WREY6-Feb-04 8:01 
GeneralRe: C++ Question. Pin
David Crow6-Feb-04 8:05
David Crow6-Feb-04 8:05 
GeneralRe: C++ Question. Pin
WREY6-Feb-04 9:01
WREY6-Feb-04 9:01 
GeneralRe: C++ Question. Pin
David Crow6-Feb-04 9:08
David Crow6-Feb-04 9:08 
GeneralRe: C++ Question. Pin
WREY6-Feb-04 9:36
WREY6-Feb-04 9:36 
GeneralRe: C++ Question. Pin
Antti Keskinen6-Feb-04 11:24
Antti Keskinen6-Feb-04 11:24 
Just as a side note, what you're posting to the function is the address of the last cell of the matrix. Now, inside the function, you move from this address forward, and although it compiles properly, it might cause an access violation or print arbitary stuff.

Instead, pass &tree[0][0] or go backwards from 5 to 0 in the for-loop. But I guess you figured this out after the first run of the program Smile | :)

-Antti Keskinen



----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: C++ Question. Pin
WREY8-Feb-04 5:57
WREY8-Feb-04 5:57 
GeneralRe: C++ Question. Pin
Michael Dunn6-Feb-04 9:05
sitebuilderMichael Dunn6-Feb-04 9:05 
GeneralRe: C++ Question. Pin
WREY6-Feb-04 10:00
WREY6-Feb-04 10:00 
QuestionHow to put a CRebar or CRebarCtrl in a dialog based application? Pin
bin89226-Feb-04 6:42
bin89226-Feb-04 6:42 
AnswerRe: How to put a CRebar or CRebarCtrl in a dialog based application? Pin
Antti Keskinen6-Feb-04 11:32
Antti Keskinen6-Feb-04 11:32 
GeneralA million thanks!!! Best wishes Pin
bin89227-Feb-04 18:43
bin89227-Feb-04 18:43 
AnswerRe: How to put a CRebar or CRebarCtrl in a dialog based application? Pin
alex.barylski15-May-04 23:36
alex.barylski15-May-04 23:36 
Questionhow can I activate the mouse wheel for a CFormView? Pin
DanYELL6-Feb-04 6:29
DanYELL6-Feb-04 6:29 
AnswerRe: how can I activate the mouse wheel for a CFormView? Pin
Antti Keskinen6-Feb-04 11:52
Antti Keskinen6-Feb-04 11:52 
General,how to create a toolbar in dialog based Pin
Anonymous6-Feb-04 6:08
Anonymous6-Feb-04 6:08 
GeneralRe: ,how to create a toolbar in dialog based Pin
Alexander M.,6-Feb-04 6:17
Alexander M.,6-Feb-04 6:17 
GeneralRe: ,i m using MFC not win32 Pin
Zeeshan Bilal6-Feb-04 6:33
Zeeshan Bilal6-Feb-04 6:33 
General,how to create a toolbar in dialog based Pin
Anonymous6-Feb-04 6:07
Anonymous6-Feb-04 6:07 
GeneralCombo Box Pin
C++NewBe6-Feb-04 5:28
C++NewBe6-Feb-04 5:28 
GeneralRe: Combo Box Pin
David Crow6-Feb-04 5:45
David Crow6-Feb-04 5:45 
GeneralRe: Combo Box Pin
C++NewBe6-Feb-04 5:52
C++NewBe6-Feb-04 5:52 
GeneralRe: Combo Box Pin
David Crow6-Feb-04 6:01
David Crow6-Feb-04 6:01 

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.