Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: string replacement using c preprocessor Pin
Naveen11-Feb-09 23:10
Naveen11-Feb-09 23:10 
GeneralRe: string replacement using c preprocessor Pin
tarcairion11-Feb-09 23:34
tarcairion11-Feb-09 23:34 
GeneralRe: string replacement using c preprocessor Pin
Naveen11-Feb-09 23:41
Naveen11-Feb-09 23:41 
AnswerRe: string replacement using c preprocessor Pin
Stuart Dootson11-Feb-09 23:13
professionalStuart Dootson11-Feb-09 23:13 
GeneralRe: string replacement using c preprocessor Pin
tarcairion11-Feb-09 23:37
tarcairion11-Feb-09 23:37 
QuestionHow to call SQL Server Stored procedure from C++ code Pin
PankajB11-Feb-09 22:42
PankajB11-Feb-09 22:42 
AnswerRe: How to call SQL Server Stored procedure from C++ code Pin
CPallini11-Feb-09 23:48
mveCPallini11-Feb-09 23:48 
Questionproblem of creating a dialogbox Pin
VCProgrammer11-Feb-09 22:31
VCProgrammer11-Feb-09 22:31 
Hi all,

I have made a dialog based application in vc-2008. I have made 2 more dialog boxes...

Now what i have to do is on button click event 1st dialog box is called, so first dialog box OnInitDialog function is being called in that function second dialog box DoModal function has been called... Now what i want is if second dialog box return 1 i.e its successful then only first dialog box should be constructed and do its processing otherwise it should not be constructed.....

for example
CFirstDialog dlg;
dlg.DoModal();

BOOL CFirstDialog::OnInitDialog() 
{
CSecondDialog dlg1;
int ret_val = dlg1.DoModal();

if(ret_val == 1)
return true;//i.e dialogbox should be created
else
return false;// dialog should not be created
}


but this code is not solving my problem...

its giving me a dialog box(first) in not working condition....

how to do this....

can anybody help me in this...

thanks in advance
AnswerRe: problem of creating a dialogbox Pin
Cedric Moonen11-Feb-09 22:37
Cedric Moonen11-Feb-09 22:37 
AnswerRe: problem of creating a dialogbox [modified] Pin
Iain Clarke, Warrior Programmer11-Feb-09 22:57
Iain Clarke, Warrior Programmer11-Feb-09 22:57 
AnswerRe: problem of creating a dialogbox Pin
aks.11-Feb-09 23:08
aks.11-Feb-09 23:08 
QuestionScrolling in List box Pin
m_mun11-Feb-09 22:30
m_mun11-Feb-09 22:30 
AnswerRe: Scrolling in List box Pin
Naveen11-Feb-09 22:46
Naveen11-Feb-09 22:46 
AnswerRe: Scrolling in List box Pin
Code-o-mat12-Feb-09 5:44
Code-o-mat12-Feb-09 5:44 
QuestionHow to know 32 or 64 bit Pin
john563211-Feb-09 22:27
john563211-Feb-09 22:27 
AnswerRe: How to know 32 or 64 bit Pin
Naveen11-Feb-09 22:49
Naveen11-Feb-09 22:49 
Questionread, write binary file Pin
tom4_2511-Feb-09 22:19
tom4_2511-Feb-09 22:19 
AnswerRe: read, write binary file Pin
CPallini11-Feb-09 22:34
mveCPallini11-Feb-09 22:34 
QuestionHow to set visible area of a Popup Menu? Pin
pa_ajaykumar11-Feb-09 20:37
pa_ajaykumar11-Feb-09 20:37 
AnswerRe: How to set visible area of a Popup Menu? Pin
Stuart Dootson11-Feb-09 21:20
professionalStuart Dootson11-Feb-09 21:20 
GeneralRe: How to set visible area of a Popup Menu? Pin
pa_ajaykumar11-Feb-09 22:04
pa_ajaykumar11-Feb-09 22:04 
GeneralRe: How to set visible area of a Popup Menu? Pin
Stuart Dootson11-Feb-09 23:01
professionalStuart Dootson11-Feb-09 23:01 
QuestionBlinking cursor on the view. Pin
VC++Maniac11-Feb-09 20:21
VC++Maniac11-Feb-09 20:21 
AnswerRe: Blinking cursor on the view. Pin
«_Superman_»11-Feb-09 20:33
professional«_Superman_»11-Feb-09 20:33 
QuestionCOM : ATL DLL? Pin
sam_psycho11-Feb-09 20:02
sam_psycho11-Feb-09 20:02 

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.