Click here to Skip to main content
16,010,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strcpy & UNICODE Pin
Jon Sagara20-Dec-01 17:20
Jon Sagara20-Dec-01 17:20 
GeneralRe: strcpy & UNICODE Pin
Matt Newman21-Dec-01 9:50
Matt Newman21-Dec-01 9:50 
GeneralRe: strcpy & UNICODE Pin
Nish Nishant20-Dec-01 18:55
sitebuilderNish Nishant20-Dec-01 18:55 
GeneralRe: strcpy & UNICODE Pin
Michael Dunn20-Dec-01 19:28
sitebuilderMichael Dunn20-Dec-01 19:28 
GeneralNewbie Pin
20-Dec-01 16:09
suss20-Dec-01 16:09 
GeneralRe: Newbie Pin
Nish Nishant20-Dec-01 16:24
sitebuilderNish Nishant20-Dec-01 16:24 
GeneralRe: Newbie Pin
20-Dec-01 16:27
suss20-Dec-01 16:27 
Generalvoid to BOOL Pin
John L. DeVito20-Dec-01 13:44
professionalJohn L. DeVito20-Dec-01 13:44 
OK code snippet:

void CPro1WinTUSDlg::OnMainButton()
{
if(OnSearchforRadio()){
CSearchingDlg SearchingDlg;
SearchingDlg.DoModal();
}
else{ //if(OnEnterdataRadio()){
CSureToEnterDlg SureToEnterDlg;
SureToEnterDlg.DoModal();
}
}

I want my button to invoke dialog 1 if radio 1 is selected and dialog 2 if radio 2 is selected. I changed the OnEnterdataRadio() and OnSearchforRadio() functions from type to void to BOOL. Everything compiles but when the button is pressed, regardless of which radio is selected the button is invoking the Seaching dialog.
I'm a newbie at all of this, so please be gentle with the flames. Smile | :)

Digital Khaos
"Every problem has a solution" -unknown
GeneralRe: void to BOOL Pin
Christian Graus20-Dec-01 14:06
protectorChristian Graus20-Dec-01 14:06 
GeneralRe: void to BOOL Pin
Jon Hulatt20-Dec-01 23:44
Jon Hulatt20-Dec-01 23:44 
Generalsimple add-in / COM question Pin
20-Dec-01 13:40
suss20-Dec-01 13:40 
GeneralCopy constructors for template classes Pin
moredip20-Dec-01 13:19
moredip20-Dec-01 13:19 
GeneralRe: Copy constructors for template classes Pin
Michael Dunn20-Dec-01 15:44
sitebuilderMichael Dunn20-Dec-01 15:44 
GeneralRe: Copy constructors for template classes Pin
moredip21-Dec-01 7:28
moredip21-Dec-01 7:28 
GeneralCComboBox: More than one box dropped at a time Pin
Eldon Zacek20-Dec-01 12:41
Eldon Zacek20-Dec-01 12:41 
GeneralOpinions requested :rolleyes: Pin
Bill Wilson20-Dec-01 12:11
Bill Wilson20-Dec-01 12:11 
GeneralXP look Pin
20-Dec-01 12:10
suss20-Dec-01 12:10 
GeneralRe: XP look Pin
Christian Graus20-Dec-01 13:30
protectorChristian Graus20-Dec-01 13:30 
GeneralRe: XP look Pin
Matt Newman20-Dec-01 13:40
Matt Newman20-Dec-01 13:40 
GeneralRe: XP look Pin
Michael Dunn20-Dec-01 15:46
sitebuilderMichael Dunn20-Dec-01 15:46 
GeneralLocating First Impression ActiveX Pin
pat at oli20-Dec-01 9:54
pat at oli20-Dec-01 9:54 
GeneralDirector/Flash style score control Pin
Gaz20-Dec-01 9:10
Gaz20-Dec-01 9:10 
GeneralTemplated CView classes Pin
20-Dec-01 7:18
suss20-Dec-01 7:18 
Generalalternative to fscanf Pin
meirav20-Dec-01 7:08
meirav20-Dec-01 7:08 
GeneralRe: alternative to fscanf Pin
Nemanja Trifunovic20-Dec-01 7:20
Nemanja Trifunovic20-Dec-01 7: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.