Click here to Skip to main content
15,899,024 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWinThread problems... Pin
valikac10-Dec-02 7:50
valikac10-Dec-02 7:50 
GeneralRe: CWinThread problems... Pin
Alvaro Mendez10-Dec-02 9:06
Alvaro Mendez10-Dec-02 9:06 
GeneralAVI files in windows 2000 Pin
daphna10-Dec-02 3:42
daphna10-Dec-02 3:42 
GeneralRich Edit and Decimal Tab Stops Pin
xanatos10-Dec-02 3:33
xanatos10-Dec-02 3:33 
Generalpositioning CPropertySheet dialog Pin
mariuszpopiolek10-Dec-02 2:36
mariuszpopiolek10-Dec-02 2:36 
GeneralRe: positioning CPropertySheet dialog Pin
Dominik Reichl10-Dec-02 2:51
Dominik Reichl10-Dec-02 2:51 
GeneralRe: positioning CPropertySheet dialog Pin
mariuszpopiolek10-Dec-02 7:46
mariuszpopiolek10-Dec-02 7:46 
GeneralCFileDialog trouble Pin
Andrew Medvedev10-Dec-02 1:27
Andrew Medvedev10-Dec-02 1:27 
Hi.
I'll trying to open simple file dialog from view of my single document application. MSDN->Help...
////////////////////// begin ///////////////////////////////////////
// szFilters is a text string that includes two file name filters:
// "*.my" for "MyType Files" and "*.*' for "All Files."
char szFilters[]=
"MyType Files (*.my)|*.my|All Files (*.*)|*.*||";
// Create an Open dialog; the default file name extension is ".my".
CFileDialog *fileDlg =new CFileDialog(TRUE, "my", "*.my",
OFN_EXPLORER | OFN_HIDEREADONLY, szFilters, this);
// Display the file dialog. When user clicks OK, fileDlg.DoModal()
// returns IDOK.
if( fileDlg->DoModal ()==IDOK )
{
CString pathName = fileDlg->GetPathName();
// Implement opening and reading file in here. ...
//Change the window's title to the opened file's title.
CString fileName = fileDlg->GetFileTitle ();
}
delete fileDlg;
/////////////////////////////// end ////////////////////////////////
fileDlg->DoModal() return IDCANCEL and dialog window is not showed... Cry | :((

I try to create dialog based application, insert this block of code and get my dialog... Where is mistake???? Eek! | :eek:

This bug is ONLY on windows NT4 server... XP works fine. Unsure | :~ Confused | :confused:
Used Visual Studio .NET (VC7++)
Thanks for help and sorry for bad english. Wink | ;)

GeneralRe: CFileDialog trouble Pin
User 665810-Dec-02 1:31
User 665810-Dec-02 1:31 
GeneralRe: CFileDialog trouble Pin
Andrew Medvedev10-Dec-02 1:35
Andrew Medvedev10-Dec-02 1:35 
GeneralRe: CFileDialog trouble Pin
Nitron10-Dec-02 3:17
Nitron10-Dec-02 3:17 
GeneralRe: CFileDialog trouble Pin
Andrew Medvedev10-Dec-02 22:45
Andrew Medvedev10-Dec-02 22:45 
GeneralRe: CFileDialog trouble Pin
Nitron11-Dec-02 6:39
Nitron11-Dec-02 6:39 
GeneralWindow flickering in Taskbar Pin
Ricky_TheBard10-Dec-02 1:16
Ricky_TheBard10-Dec-02 1:16 
GeneralRe: Window flickering in Taskbar Pin
Richard Green10-Dec-02 1:56
Richard Green10-Dec-02 1:56 
GeneralRe: Window flickering in Taskbar Pin
Ricky_TheBard10-Dec-02 6:26
Ricky_TheBard10-Dec-02 6:26 
GeneralCListCtrl Column width Pin
Paolo Vernazza10-Dec-02 1:13
Paolo Vernazza10-Dec-02 1:13 
GeneralRe: CListCtrl Column width Pin
Dominik Reichl10-Dec-02 2:47
Dominik Reichl10-Dec-02 2:47 
GeneralRe: CListCtrl Column width Pin
Paolo Vernazza10-Dec-02 4:33
Paolo Vernazza10-Dec-02 4:33 
GeneralRe: CListCtrl Column width Pin
Rage10-Dec-02 5:15
professionalRage10-Dec-02 5:15 
GeneralRe: CListCtrl Column width Pin
Paolo Vernazza10-Dec-02 5:39
Paolo Vernazza10-Dec-02 5:39 
GeneralI'm going crazy here ( trying to hook into session object ) Pin
Christian Graus10-Dec-02 0:43
protectorChristian Graus10-Dec-02 0:43 
GeneralRe: I'm going crazy here ( trying to hook into session object ) Pin
Alvaro Mendez10-Dec-02 5:11
Alvaro Mendez10-Dec-02 5:11 
GeneralRe: I'm going crazy here ( trying to hook into session object ) Pin
Christian Graus10-Dec-02 15:14
protectorChristian Graus10-Dec-02 15:14 
Generalget__NewEnum problem. Pin
Christian Graus10-Dec-02 0:28
protectorChristian Graus10-Dec-02 0:28 

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.