Click here to Skip to main content
12,757,424 members (39,980 online)

C / C++ / MFC

 
GeneralRe: How to make a project resolution independent.? Pin
mbatra3119-Dec-12 2:44
membermbatra3119-Dec-12 2:44 
GeneralRe: How to make a project resolution independent.? Pin
Jochen Arndt19-Dec-12 3:06
memberJochen Arndt19-Dec-12 3:06 
AnswerRe: How to make a project resolution independent.? Pin
Alan Balkany19-Dec-12 5:25
memberAlan Balkany19-Dec-12 5:25 
QuestionASM with stams library of C ++ Pin
Gurunathkudalkar18-Dec-12 22:15
memberGurunathkudalkar18-Dec-12 22:15 
AnswerRe: ASM with stams library of C ++ Pin
CPallini18-Dec-12 23:19
mvpCPallini18-Dec-12 23:19 
Questionerror C2228 "must have class/struct/union" Pin
alaaan7318-Dec-12 5:55
memberalaaan7318-Dec-12 5:55 
AnswerRe: error C2228 "must have class/struct/union" Pin
Chris Losinger18-Dec-12 6:19
memberChris Losinger18-Dec-12 6:19 
AnswerRe: error C2228 "must have class/struct/union" Pin
Richard MacCutchan18-Dec-12 8:09
mvpRichard MacCutchan18-Dec-12 8:09 
You have:
bool Flight::reserveSeat(Passenger psngr, bool smoker)
{
   Passenger.setPassengerName(psngr.getPassengerName());
   passenger.setPassportNumber(psngr.getPassportNumber());
   passenger.setContactNumber(psngr.getContactNumber());
   reservations.smokerSeat=smoker;
 
}

which makes little sense. you are using both Passenger (with upper case P), and passenger (with lower case p) to refer to something. But what, why would you try to set the value of an item in an object from the value taken from that object? Similarly the statement
reservations.smokerSeat=smoker;

make little sense as reservations is a pointer to a pointer (of something). I think you are a little confused about your classes and how they connect to each other.
One of these days I'm going to think of a really clever signature.

AnswerRe: error C2228 "must have class/struct/union" Pin
Stefan_Lang21-Dec-12 2:59
memberStefan_Lang21-Dec-12 2:59 
QuestionCan we capture HD video using DirectShow C++/MFC .? Pin
mbatra3118-Dec-12 0:30
membermbatra3118-Dec-12 0:30 
QuestionCWinApp::OnFileNew failed ? Pin
Codzer17-Dec-12 20:23
memberCodzer17-Dec-12 20:23 
GeneralRe: CWinApp::OnFileNew failed ? Pin
Jochen Arndt17-Dec-12 22:33
memberJochen Arndt17-Dec-12 22:33 
GeneralRe: CWinApp::OnFileNew failed ? Pin
Codzer18-Dec-12 3:48
memberCodzer18-Dec-12 3:48 
AnswerRe: CWinApp::OnFileNew failed ? Pin
Jochen Arndt18-Dec-12 4:03
memberJochen Arndt18-Dec-12 4:03 
QuestionLinked List Via Disk File Pin
imboared117-Dec-12 20:01
memberimboared117-Dec-12 20:01 
SuggestionRe: Linked List Via Disk File Pin
Richard MacCutchan17-Dec-12 23:15
mvpRichard MacCutchan17-Dec-12 23:15 
QuestionConfused with destructor Pin
Super Lloyd17-Dec-12 3:33
memberSuper Lloyd17-Dec-12 3:33 
AnswerRe: Confused with destructor Pin
Erudite_Eric17-Dec-12 5:54
memberErudite_Eric17-Dec-12 5:54 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 6:01
memberSuper Lloyd17-Dec-12 6:01 
GeneralRe: Confused with destructor Pin
jschell17-Dec-12 9:31
memberjschell17-Dec-12 9:31 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 17:59
memberSuper Lloyd17-Dec-12 17:59 
GeneralRe: Confused with destructor Pin
megaadam18-Dec-12 4:51
membermegaadam18-Dec-12 4:51 
GeneralRe: Confused with destructor Pin
Stefan_Lang19-Dec-12 6:33
memberStefan_Lang19-Dec-12 6:33 
GeneralRe: Confused with destructor Pin
Super Lloyd19-Dec-12 12:35
memberSuper Lloyd19-Dec-12 12:35 
GeneralRe: Confused with destructor Pin
Erudite_Eric21-Dec-12 0:20
memberErudite_Eric21-Dec-12 0:20 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 21 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid