Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to make the menu of XP's style ? Pin
16-Mar-02 4:55
suss16-Mar-02 4:55 
QuestionHow to make the sensitive effect of mouse of CTabCtrl's push-button ? Pin
mzt16-Mar-02 3:49
mzt16-Mar-02 3:49 
GeneralCopy Constructors & operator= when using pointers Pin
John Cruz16-Mar-02 3:13
John Cruz16-Mar-02 3:13 
GeneralRe: Copy Constructors & operator= when using pointers Pin
Paul M Watt16-Mar-02 6:30
mentorPaul M Watt16-Mar-02 6:30 
GeneralSDK problem! Pin
hph16-Mar-02 3:13
hph16-Mar-02 3:13 
GeneralRe: SDK problem! Pin
Nish Nishant16-Mar-02 3:17
sitebuilderNish Nishant16-Mar-02 3:17 
GeneralRe: SDK problem! Pin
Peter Liddle16-Mar-02 9:25
Peter Liddle16-Mar-02 9:25 
GeneralSimple question Pin
John Cruz16-Mar-02 1:41
John Cruz16-Mar-02 1:41 
// Creates a reference of the board then copies
// the reference to a new board
const CBoard& rConstBoard = *mpBoard;
CBoard Board = rConstBoard;

is this call rite? because it causing my whole function not to work properly.
can any tell me whats the problem.

here is my whole function if my question information is insufficient...

// Searches for the best computer move on the board
int CComputer::CheckForMoves(int Depth, int Alpha, int Beta, int& Row, int& Col)
{
// Check if the Entered Depth is greater than the Maximum depth
ASSERT(Depth >= MAXDEPTH);

// Creates a reference of the board then copies
// the reference to a new board
const CBoard& rConstBoard = *mpBoard; <-- the problem
CBoard Board = rConstBoard;

Row = Col = 1;

return 0;
}

And i wanted to return both Row and Col but it wont do that... i have debugged 15X wid the debugger and i still can find my mistake. can anyone tell me what i am doing wrong??? Frown | :( Frown | :( Frown | :(

john
GeneralRe: Simple question Pin
Stan Shannon16-Mar-02 1:49
Stan Shannon16-Mar-02 1:49 
GeneralRe: Simple question Pin
John Cruz16-Mar-02 2:05
John Cruz16-Mar-02 2:05 
GeneralRe: Simple question Pin
Stan Shannon16-Mar-02 2:27
Stan Shannon16-Mar-02 2:27 
GeneralRe: Simple question Pin
John Cruz16-Mar-02 2:29
John Cruz16-Mar-02 2:29 
GeneralRe: Simple question Pin
CDuddley16-Mar-02 13:24
CDuddley16-Mar-02 13:24 
GeneralRe: Simple question Pin
John Cruz16-Mar-02 14:51
John Cruz16-Mar-02 14:51 
GeneralFocus Pin
meirav15-Mar-02 23:36
meirav15-Mar-02 23:36 
GeneralRe: Focus Pin
Mazdak16-Mar-02 0:01
Mazdak16-Mar-02 0:01 
GeneralRe: Focus Pin
Nish Nishant16-Mar-02 1:02
sitebuilderNish Nishant16-Mar-02 1:02 
GeneralVC++ 6.0 string bug ? (take a look plz) Pin
Lockhart15-Mar-02 22:43
Lockhart15-Mar-02 22:43 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Christian Graus15-Mar-02 22:53
protectorChristian Graus15-Mar-02 22:53 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Lockhart15-Mar-02 23:50
Lockhart15-Mar-02 23:50 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Christian Graus15-Mar-02 23:59
protectorChristian Graus15-Mar-02 23:59 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Neville Franks16-Mar-02 0:33
Neville Franks16-Mar-02 0:33 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Lockhart16-Mar-02 1:14
Lockhart16-Mar-02 1:14 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Lockhart16-Mar-02 1:03
Lockhart16-Mar-02 1:03 
GeneralRe: VC++ 6.0 string bug ? (take a look plz) Pin
Christian Graus16-Mar-02 1:06
protectorChristian Graus16-Mar-02 1:06 

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.