Click here to Skip to main content
15,918,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MDI app without MFC? Pin
jschacker5-Sep-00 5:17
jschacker5-Sep-00 5:17 
AnswerRe: MDI app without MFC? Pin
Sam Hobbs7-Sep-00 18:49
Sam Hobbs7-Sep-00 18:49 
AnswerRe: MDI app without MFC? Pin
Scott Leonard8-Sep-00 5:00
Scott Leonard8-Sep-00 5:00 
QuestionFunction for Converting a CString/char* to UTF-8? Pin
Uwe Keim1-Sep-00 9:56
sitebuilderUwe Keim1-Sep-00 9:56 
AnswerRe: Function for Converting a CString/char* to UTF-8? Pin
Michael Dunn1-Sep-00 20:10
sitebuilderMichael Dunn1-Sep-00 20:10 
GeneralRe: Function for Converting a CString/char* to UTF-8? Pin
Uwe Keim1-Sep-00 23:32
sitebuilderUwe Keim1-Sep-00 23:32 
GeneralSolution FOUND: Function for Converting a CString/char* to UTF-8? Pin
Uwe Keim2-Sep-00 1:24
sitebuilderUwe Keim2-Sep-00 1:24 
GeneralCComboBoxEx and LimitText Pin
David Saulnier1-Sep-00 8:49
David Saulnier1-Sep-00 8:49 
GeneralIDE and Windows 2000 Problems Pin
arf1-Sep-00 5:52
arf1-Sep-00 5:52 
GeneralRe: IDE and Windows 2000 Problems Pin
Paolo Messina1-Sep-00 10:01
professionalPaolo Messina1-Sep-00 10:01 
GeneralRe: IDE and Windows 2000 Problems Pin
David Wulff1-Sep-00 14:36
David Wulff1-Sep-00 14:36 
GeneralSorry for my spelling Pin
David Wulff1-Sep-00 14:38
David Wulff1-Sep-00 14:38 
GeneralRe: IDE and Windows 2000 Problems Pin
arf2-Sep-00 9:55
arf2-Sep-00 9:55 
GeneralRe: IDE and Windows 2000 Problems Pin
David Wulff2-Sep-00 11:11
David Wulff2-Sep-00 11:11 
GeneralRe: IDE and Windows 2000 Problems Pin
Ronald L. Russell Jr. (Ron)5-Sep-00 3:28
sussRonald L. Russell Jr. (Ron)5-Sep-00 3:28 
GeneralRe: IDE and Windows 2000 Problems Pin
arf5-Sep-00 5:42
arf5-Sep-00 5:42 
General*** Dialog Box of Open & Save ****** Pin
Steve Lai1-Sep-00 5:39
Steve Lai1-Sep-00 5:39 
GeneralRe: *** Dialog Box of Open & Save ****** Pin
Paolo Messina1-Sep-00 10:16
professionalPaolo Messina1-Sep-00 10:16 
Hi Steve,

That should be pretty simple:
CString filename;
CFileDialog opendlg(TRUE, NULL, NULL, OFN_HIDEREADONLY,
    _T("Text files|*.txt;*.doc|Images|*.bmp;*.gif||"));
if (opendlg.DoModal() == IDOK)
    filename = opendlg.GetPathName()

This code works for a single selection dialog. At the end you have the complete name of the selected file in the filename variable.
This should help you getting started, but refer to MSDN for a complete explanation.

Cheers,
Paolo.
GeneralReplacement funtion for GetDIBits()-Please Help Pin
Shiv31-Aug-00 22:42
Shiv31-Aug-00 22:42 
GeneralRe: Replacement funtion for GetDIBits()-Please Help Pin
jschacker1-Sep-00 10:56
jschacker1-Sep-00 10:56 
GeneralMemory leak detection tool Pin
Øyvind Bratland31-Aug-00 22:16
sussØyvind Bratland31-Aug-00 22:16 
GeneralRe: Memory leak detection tool Pin
Alex Gorev1-Sep-00 5:35
Alex Gorev1-Sep-00 5:35 
GeneralRe: Memory leak detection tool Pin
roger C1-Sep-00 10:34
roger C1-Sep-00 10:34 
GeneralRe: Memory leak detection tool Pin
Michael Dunn1-Sep-00 14:16
sitebuilderMichael Dunn1-Sep-00 14:16 
QuestionHow to debug in release mode Pin
tomer dror31-Aug-00 21:25
tomer dror31-Aug-00 21:25 

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.