Click here to Skip to main content
16,012,025 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 7:45
moredip4-Jun-02 7:45 
GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 7:51
Rama Krishna Vavilala4-Jun-02 7:51 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 8:06
moredip4-Jun-02 8:06 
GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 8:03
Rama Krishna Vavilala4-Jun-02 8:03 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 8:17
moredip4-Jun-02 8:17 
GeneralCMenu base items Pin
dazinith4-Jun-02 5:38
dazinith4-Jun-02 5:38 
GeneralRe: CMenu base items Pin
Rage4-Jun-02 6:12
professionalRage4-Jun-02 6:12 
Generalgarbage using CFileDialog Pin
Luis E. Cuadrado4-Jun-02 5:17
Luis E. Cuadrado4-Jun-02 5:17 
Hello everybody:
I have something weird happening when in a CFileDialog object that I create. From a menu, I choose a command that brings up a Open File dialog. The weird thing is happening when I click the File Type pull down where it says Executable Files (*.exe)|*.exe I able to see in the list the Executable Files (*.exe)|*.exe and under that some garbage. I just want that Open File dialog to have just 1 option (Executable Files (*.exe)|*.exe). This is the code that I have so far:
////////////////////////////////////////////////////////
static char szFilter[] = "Executable Files (*.exe)|*.exe";

CFileDialog openDialog(TRUE,NULL, NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter);

//Set the title of the dialog.
CString sTitle;
VERIFY(sTitle.LoadString(IDS_OPEN_WITH));
openDialog.m_ofn.lpstrTitle = sTitle;

int nResult = openDialog.DoModal();
if(IDCANCEL==nResult) return;
////////////////////////////////////////////////////////
Is there something that I need to do to correct this problem? I have a screenshot with the problem but I didn't saw anything in this forum that I can post images. Any answer is more than welcome.

Best regards,
Luis E.

Luis E. Cuadrado
Blush | :O )
GeneralRe: garbage using CFileDialog Pin
Tomasz Sowinski4-Jun-02 5:25
Tomasz Sowinski4-Jun-02 5:25 
GeneralRe: garbage using CFileDialog Pin
Luis E. Cuadrado5-Jun-02 1:25
Luis E. Cuadrado5-Jun-02 1:25 
Questionis GDI+ able to display BIG bitmaps ? Pin
jpg4-Jun-02 5:14
jpg4-Jun-02 5:14 
GeneralDX 8.1 Pin
Zizilamoroso4-Jun-02 4:53
Zizilamoroso4-Jun-02 4:53 
GeneralRe: DX 8.1 Pin
moredip4-Jun-02 5:42
moredip4-Jun-02 5:42 
GeneralRe: DX 8.1 Pin
Zizilamoroso4-Jun-02 6:33
Zizilamoroso4-Jun-02 6:33 
GeneralRe: DX 8.1 Pin
moredip4-Jun-02 7:23
moredip4-Jun-02 7:23 
GeneralRe: DX 8.1 Pin
Zizilamoroso4-Jun-02 23:06
Zizilamoroso4-Jun-02 23:06 
GeneralRe: DX 8.1 Pin
moredip5-Jun-02 8:17
moredip5-Jun-02 8:17 
GeneralADO question Pin
4-Jun-02 4:39
suss4-Jun-02 4:39 
GeneralRe: ADO question Pin
Daniel Turini4-Jun-02 4:47
Daniel Turini4-Jun-02 4:47 
GeneralIdea of How to Create Power Point looks like apps Pin
DLeo4-Jun-02 4:43
DLeo4-Jun-02 4:43 
GeneralRe: Idea of How to Create Power Point looks like apps Pin
Rage4-Jun-02 6:38
professionalRage4-Jun-02 6:38 
GeneralProcess Handle given Process ID Pin
mspitzer4-Jun-02 4:07
mspitzer4-Jun-02 4:07 
GeneralRe: Process Handle given Process ID Pin
Daniel Turini4-Jun-02 4:49
Daniel Turini4-Jun-02 4:49 
GeneralRe: Process Handle given Process ID Pin
mspitzer4-Jun-02 5:03
mspitzer4-Jun-02 5:03 
QuestionIs D: the CD-ROM? Pin
Rickard Andersson204-Jun-02 4:01
Rickard Andersson204-Jun-02 4:01 

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.