1)how to Display the File Dialog Box, in MFC ?



1)how to Display the File Dialog Box, in MFC ?..

Answer / 106743013743

Ex:-
void Ctharam::OnBnClickedFileBtn()
{

CFileDialog *dlg = new CFileDialog(TRUE); // TRUE means Open

dlg->DoModal();
}

code by Ctharam

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More MFC Interview Questions

What view class enables you to use an edit control as a view?

1 Answers  


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.

3 Answers   ABC, HCL, Infosys,


visual Pogramming c++ coding for create a paint application.. (Please someone help me)

2 Answers  


What are the types of button controls?

10 Answers  


how many types of classes are ther,what are that

7 Answers   L&T,






What is the use of OninitDialog ?

11 Answers   HCL, Nagarro,


what is the use of CWinApp class?

3 Answers   Mphasis,


What is the difference between the ASSERT and VERIFY macros?

4 Answers  


what is message loop how mfc does it internally?

4 Answers   Aspire,


What is the difference between hinsrtance and hprevinstance in WinMain function?

3 Answers  


I want recent paper pattern for HP company?

0 Answers   HP,


how do u identify RTTI in vc++

4 Answers   Siemens,


Categories