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

C / C++ / MFC

 
GeneralAnimation Control Pin
Brigg Thorp25-Nov-02 7:28
Brigg Thorp25-Nov-02 7:28 
GeneralRe: Animation Control Pin
Scott H. Settlemier25-Nov-02 10:16
Scott H. Settlemier25-Nov-02 10:16 
GeneralBasic MFC question Pin
will138325-Nov-02 5:54
will138325-Nov-02 5:54 
GeneralRe: Basic MFC question Pin
Rob Caldecott25-Nov-02 5:58
Rob Caldecott25-Nov-02 5:58 
GeneralRe: Basic MFC question Pin
Roman Fadeyev25-Nov-02 6:04
Roman Fadeyev25-Nov-02 6:04 
GeneralRe: Basic MFC question Pin
Stephane Rodriguez.25-Nov-02 6:39
Stephane Rodriguez.25-Nov-02 6:39 
GeneralRe: Basic MFC question Pin
Jeff Patterson26-Nov-02 3:26
Jeff Patterson26-Nov-02 3:26 
GeneralCFileDialog problem under win 98 Pin
lbc25-Nov-02 5:50
lbc25-Nov-02 5:50 
Hello all
I have a VC7 dialog based application.
Basically one dialog with

an edit box
IDC_EDIT

and 2 buttons
IDC_READ_MYFILE
IDC_CANCEL

when I press the IDC_READ_MYFILE button i want to open a standard File Open Dialog, managed by the message_map entry, something like this:

ON_BN_CLICKED(IDC_READ_MYFILE, OnReadMyfile)

...

void CMyAppDlg::OnReadMyfile()
{
// TODO: Add your control notification handler code here

static CString szFilter = "DXF Files (*.dxf)|*.dxf||";
CFileDialog fileDialog(TRUE, "dxf", NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter, NULL );

if(fileDialog.DoModal() == IDOK)

{
CString sDXF_FileName;
sDXF_FileName = fileDialog.GetPathName();

... do some processing on this file

UpdateData(FALSE);
}



}

Tested under windows XP it *works fine* (opening the File Dialog and processing the selected file as needed) but under windows 98 it works but when pressing on the IDC_READ_MYFILE button nothing happens (the File Open dialog is not open) while the close button works and also the about message box works (called inside the dialog top left System menu)

By the way I have checked the resources IDs and there isn't any conflict

any help/tips will be greatly appreciated

thanks in advance!


best regards
GeneralRe: CFileDialog problem under win 98 Pin
Rob Caldecott25-Nov-02 5:57
Rob Caldecott25-Nov-02 5:57 
GeneralRe: CFileDialog problem under win 98 Pin
lbc25-Nov-02 22:06
lbc25-Nov-02 22:06 
GeneralMDI Splitter problems Pin
Bjornarsen25-Nov-02 5:43
Bjornarsen25-Nov-02 5:43 
GeneralRe: MDI Splitter problems Pin
dima_t25-Nov-02 18:02
dima_t25-Nov-02 18:02 
GeneralRe: Sockets and Threads Pin
georgiek5025-Nov-02 5:34
georgiek5025-Nov-02 5:34 
GeneralProblem with CDialogBar e CTreeCtrl Pin
Anthiny B.25-Nov-02 5:06
sussAnthiny B.25-Nov-02 5:06 
GeneralRe: Problem with CDialogBar e CTreeCtrl Pin
Roman Fadeyev25-Nov-02 5:17
Roman Fadeyev25-Nov-02 5:17 
GeneralRe: Problem with CDialogBar e CTreeCtrl Pin
Anonymous25-Nov-02 5:32
Anonymous25-Nov-02 5:32 
GeneralRe: Problem with CDialogBar e CTreeCtrl Pin
Roman Fadeyev25-Nov-02 5:55
Roman Fadeyev25-Nov-02 5:55 
GeneralGetting Char Index Pin
brianwelsch25-Nov-02 4:22
brianwelsch25-Nov-02 4:22 
GeneralRe: Getting Char Index Pin
Roman Fadeyev25-Nov-02 5:00
Roman Fadeyev25-Nov-02 5:00 
GeneralSockets and Threads Pin
ballyduff25-Nov-02 4:14
ballyduff25-Nov-02 4:14 
GeneralRe: Sockets and Threads Pin
valikac25-Nov-02 9:02
valikac25-Nov-02 9:02 
GeneralText editor Pin
Rage25-Nov-02 4:04
professionalRage25-Nov-02 4:04 
GeneralRe: Text editor Pin
brianwelsch25-Nov-02 4:27
brianwelsch25-Nov-02 4:27 
GeneralRe: Text editor Pin
Jeff Patterson25-Nov-02 7:14
Jeff Patterson25-Nov-02 7:14 
GeneralRe: Text editor Pin
Rage25-Nov-02 20:26
professionalRage25-Nov-02 20:26 

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.