Click here to Skip to main content
15,881,089 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: opening files from a program Pin
keegan6-Jan-04 3:57
keegan6-Jan-04 3:57 
GeneralRe: opening files from a program Pin
Michael Gunlock6-Jan-04 4:04
Michael Gunlock6-Jan-04 4:04 
GeneralRe: opening files from a program Pin
HackerBoy6-Jan-04 4:17
HackerBoy6-Jan-04 4:17 
GeneralRe: opening files from a program Pin
David Crow6-Jan-04 4:22
David Crow6-Jan-04 4:22 
GeneralWhich tool to use for detecting heap fragmentation Pin
Anonymous6-Jan-04 3:18
Anonymous6-Jan-04 3:18 
GeneralRe: Which tool to use for detecting heap fragmentation Pin
2249176-Jan-04 3:41
2249176-Jan-04 3:41 
GeneralRe: Difference of Floating Point Optimization in Fortran & C++ Pin
Patje6-Jan-04 2:53
Patje6-Jan-04 2:53 
GeneralCFileDialog & OLE DB template problem Pin
kjarzabek6-Jan-04 2:44
kjarzabek6-Jan-04 2:44 
Hi,

the problem is a very strange.That's the code:

static char pszFilter[]="Text Files (*.txt)|*.txt|All Files (*.*)|*.*||";
fileDlg CFileDialog(false, "txt", "*.txt", OFN_OVERWRITEPROMPT|OFN_PATHMUSTEXIST, pszFilter, this, 0);

fileDlg.DoModal();

if(m_table.OpenAll()==S_OK) /*m_table - OLE DB ACCESSOR*/
m_table.CloseAll();


if I close the CFileDialog by the OK button, the table will receive E_FAIL, but
if I close the CFileDialog by the Cancel button, the table will be opened properly.

Does anybody have idea what the problem is?




GeneralRe: CFileDialog & OLE DB template problem Pin
godzooky6-Jan-04 7:05
godzooky6-Jan-04 7:05 
GeneralRe: CFileDialog & OLE DB template problem Pin
kjarzabek6-Jan-04 9:11
kjarzabek6-Jan-04 9:11 
GeneralRe: CFileDialog & OLE DB template problem Pin
kjarzabek6-Jan-04 10:27
kjarzabek6-Jan-04 10:27 
QuestionHow to hide DOS prompt?? Pin
Danny Chan6-Jan-04 2:42
Danny Chan6-Jan-04 2:42 
AnswerRe: How to hide DOS prompt?? Pin
David Crow6-Jan-04 2:44
David Crow6-Jan-04 2:44 
AnswerRe: How to hide DOS prompt?? Pin
Selvam R6-Jan-04 2:58
professionalSelvam R6-Jan-04 2:58 
GeneralRe: How to hide DOS prompt?? Pin
Hauptman(n)6-Jan-04 4:04
Hauptman(n)6-Jan-04 4:04 
AnswerRe: How to hide DOS prompt?? Pin
valikac6-Jan-04 6:33
valikac6-Jan-04 6:33 
AnswerRe: How to hide DOS prompt?? Pin
shultas6-Jan-04 15:30
shultas6-Jan-04 15:30 
GeneralRe: How to hide DOS prompt?? Pin
Danny Chan6-Jan-04 16:49
Danny Chan6-Jan-04 16:49 
GeneralRe: How to hide DOS prompt?? Pin
shultas6-Jan-04 17:52
shultas6-Jan-04 17:52 
GeneralRe: How to hide DOS prompt?? Pin
Danny Chan7-Jan-04 2:45
Danny Chan7-Jan-04 2:45 
GeneralRe: How to hide DOS prompt?? Pin
shultas7-Jan-04 6:09
shultas7-Jan-04 6:09 
GeneralRe: How to hide DOS prompt?? Pin
Danny Chan7-Jan-04 15:22
Danny Chan7-Jan-04 15:22 
GeneralRe: How to hide DOS prompt?? Pin
Danny Chan7-Jan-04 16:42
Danny Chan7-Jan-04 16:42 
GeneralRe: How to hide DOS prompt?? Pin
shultas7-Jan-04 21:30
shultas7-Jan-04 21:30 
GeneralRe: How to hide DOS prompt?? Pin
Danny Chan12-Jan-04 2:37
Danny Chan12-Jan-04 2:37 

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.