Click here to Skip to main content
15,920,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Inheritance Pin
Nemanja Trifunovic23-Apr-06 6:50
Nemanja Trifunovic23-Apr-06 6:50 
QuestionRe: Inheritance Pin
William Burton23-Apr-06 7:19
William Burton23-Apr-06 7:19 
AnswerRe: Inheritance Pin
John R. Shaw23-Apr-06 11:54
John R. Shaw23-Apr-06 11:54 
QuestionRe: Inheritance Pin
William Burton23-Apr-06 12:17
William Burton23-Apr-06 12:17 
AnswerRe: Inheritance Pin
Stephen Hewitt23-Apr-06 13:46
Stephen Hewitt23-Apr-06 13:46 
QuestionRe: Inheritance Pin
William Burton23-Apr-06 15:16
William Burton23-Apr-06 15:16 
AnswerRe: Inheritance Pin
Stephen Hewitt23-Apr-06 16:09
Stephen Hewitt23-Apr-06 16:09 
QuestionRe: Inheritance Pin
William Burton24-Apr-06 0:18
William Burton24-Apr-06 0:18 
if(_addtodb.DoModal() == IDOK)
{
UpdateData(true); // Retrieve Current Values
_addtodb._comboContent.MakeUpper();

if (_addtodb._comboContent == "SSB SUBMARINE")
{
SSB temp;
temp.setType("SSB Submarine");
temp.setKey(list.getNodeAmount());
temp.setName(_addtodb._vesselName);
temp.setSpeed(_addtodb._vesselMaxSpeed);
temp.setLength(_addtodb._vesselLength);
temp.setRange(_addtodb._vesselMaxRange);
temp.setDisplacement(_addtodb._vesselMaxDisplacement);
temp.setCrew(_addtodb._vesselCrew);
temp.setMaxDiveDepth(_addtodb._vesselMaxDiveDepth);
temp.setSubSpeed(_addtodb._vesselMaxSpeedSubmerged);
temp.setDisplacementSub(_addtodb._vesselDisplacementSubmerged);
temp.setSLBMS(_addtodb._vesselSLBMS);
list.addNode(&temp);

}
else if (_addtodb._comboContent == "SSK SUBMARINE")
{
SSK temp;
temp.setType("SSK Submarine");
temp.setKey(list.getNodeAmount());
temp.setName(_addtodb._vesselName);
temp.setSpeed(_addtodb._vesselMaxSpeed);
temp.setLength(_addtodb._vesselLength);
temp.setRange(_addtodb._vesselMaxRange);
temp.setDisplacement(_addtodb._vesselMaxDisplacement);
temp.setCrew(_addtodb._vesselCrew);
temp.setMaxDiveDepth(_addtodb._vesselMaxDiveDepth);
temp.setSubSpeed(_addtodb._vesselMaxSpeedSubmerged);
temp.setDisplacementSub(_addtodb._vesselDisplacementSubmerged);
temp.setTorps(_addtodb._vesselTopedoes);
list.addNode(&temp);
}

as a small example from my main prog, there are more elseifs too for other types chosen
AnswerRe: Inheritance Pin
Stephen Hewitt24-Apr-06 1:38
Stephen Hewitt24-Apr-06 1:38 
GeneralRe: Inheritance Pin
David Crow24-Apr-06 2:59
David Crow24-Apr-06 2:59 
GeneralRe: Inheritance Pin
John R. Shaw29-Apr-06 20:29
John R. Shaw29-Apr-06 20:29 
GeneralRe: Inheritance Pin
David Crow1-May-06 2:51
David Crow1-May-06 2:51 
QuestionPrinter Font Question Pin
JKJKJK23-Apr-06 4:53
JKJKJK23-Apr-06 4:53 
AnswerRe: Printer Font Question Pin
Blake Miller26-Apr-06 7:46
Blake Miller26-Apr-06 7:46 
Questionhow can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
lekshmipriya23-Apr-06 2:49
lekshmipriya23-Apr-06 2:49 
AnswerRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
YaronNir23-Apr-06 3:33
YaronNir23-Apr-06 3:33 
QuestionRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
lekshmipriya23-Apr-06 4:00
lekshmipriya23-Apr-06 4:00 
AnswerRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
YaronNir23-Apr-06 4:09
YaronNir23-Apr-06 4:09 
QuestionRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
lekshmipriya23-Apr-06 5:55
lekshmipriya23-Apr-06 5:55 
AnswerRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
YaronNir23-Apr-06 6:01
YaronNir23-Apr-06 6:01 
AnswerRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
Trollslayer23-Apr-06 6:05
mentorTrollslayer23-Apr-06 6:05 
QuestionRe: how can i pass a password to a shellexecute() to extract a zip file from my VC++6.0 program Pin
David Crow24-Apr-06 3:04
David Crow24-Apr-06 3:04 
QuestionList Box have a error ??? Pin
Surivevoli23-Apr-06 1:32
Surivevoli23-Apr-06 1:32 
AnswerRe: List Box have a error ??? Pin
YaronNir23-Apr-06 2:00
YaronNir23-Apr-06 2:00 
GeneralRe: List Box have a error ??? Pin
Surivevoli23-Apr-06 19:20
Surivevoli23-Apr-06 19: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.