Click here to Skip to main content
15,900,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Throwing exception on thread end ? Pin
Tomasz Sowinski3-Mar-02 23:57
Tomasz Sowinski3-Mar-02 23:57 
AnswerRe: Throwing exception on thread end ? Pin
Prem Kumar3-Mar-02 23:57
Prem Kumar3-Mar-02 23:57 
AnswerRe: Throwing exception on thread end ? Pin
Joaquín M López Muñoz4-Mar-02 0:26
Joaquín M López Muñoz4-Mar-02 0:26 
Generalcall by reference using pointers Pin
John Cruz3-Mar-02 22:54
John Cruz3-Mar-02 22:54 
GeneralRe: call by reference using pointers Pin
Prem Kumar3-Mar-02 23:32
Prem Kumar3-Mar-02 23:32 
GeneralRe: call by reference using pointers Pin
Rickard Andersson203-Mar-02 23:38
Rickard Andersson203-Mar-02 23:38 
GeneralRe: call by reference using pointers Pin
Rickard Andersson203-Mar-02 23:37
Rickard Andersson203-Mar-02 23:37 
GeneralRe: call by reference using pointers Pin
Michael Dunn3-Mar-02 23:39
sitebuilderMichael Dunn3-Mar-02 23:39 
Pointers and references are not the same thing, you can't use both at the same time*. You can either write:
int CComputer::CheckForMoves(const CBoard& rBoard, int depth)
{
const CBoard& Board = rBoard;
const CBoard* p = &rBoard;
}
which passes the param as a reference, or:
int CComputer::CheckForMoves(const CBoard* pBoard, int depth)
{
const CBoard* p = pBoard;
const CBoard& refBoard = *pBoard;
}
which passes a pointer.

* Note for C++ experts: yes I know you can have a reference to a pointer; I didn't mention that above because it would be unnecessarily confusing.

--Mike--
Best score on the mini-putt game: 27
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan and Jamie Salé.

GeneralRe: call by reference using pointers Pin
John Cruz3-Mar-02 23:41
John Cruz3-Mar-02 23:41 
GeneralRe: call by reference using pointers Pin
Joaquín M López Muñoz3-Mar-02 23:41
Joaquín M López Muñoz3-Mar-02 23:41 
GeneralRe: call by reference using pointers Pin
John Cruz3-Mar-02 23:49
John Cruz3-Mar-02 23:49 
QuestionWhat is a development plan? Pin
davilism3-Mar-02 22:43
davilism3-Mar-02 22:43 
QuestionExplorer like interface style ?? Pin
Walkerboh3-Mar-02 22:24
Walkerboh3-Mar-02 22:24 
AnswerRe: Explorer like interface style ?? Pin
Mazdak3-Mar-02 22:42
Mazdak3-Mar-02 22:42 
GeneralAnimateWindow => Pin
3-Mar-02 19:00
suss3-Mar-02 19:00 
GeneralRe: AnimateWindow => Pin
Mazdak3-Mar-02 19:39
Mazdak3-Mar-02 19:39 
GeneralRe: AnimateWindow => Pin
3-Mar-02 20:05
suss3-Mar-02 20:05 
GeneralAn annoyance Pin
Nish Nishant3-Mar-02 18:06
sitebuilderNish Nishant3-Mar-02 18:06 
GeneralRe: An annoyance Pin
Nish Nishant3-Mar-02 18:09
sitebuilderNish Nishant3-Mar-02 18:09 
GeneralRe: An annoyance Pin
Nish Nishant3-Mar-02 18:12
sitebuilderNish Nishant3-Mar-02 18:12 
GeneralRe: An annoyance Pin
Kelly Herald3-Mar-02 18:25
Kelly Herald3-Mar-02 18:25 
GeneralRe: An annoyance Pin
Nish Nishant3-Mar-02 18:36
sitebuilderNish Nishant3-Mar-02 18:36 
GeneralRe: An annoyance Pin
Paul M Watt3-Mar-02 18:31
mentorPaul M Watt3-Mar-02 18:31 
GeneralRe: An annoyance Pin
Nish Nishant3-Mar-02 18:39
sitebuilderNish Nishant3-Mar-02 18:39 
GeneralRe: An annoyance Pin
Paul M Watt3-Mar-02 18:45
mentorPaul M Watt3-Mar-02 18:45 

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.