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

C / C++ / MFC

 
QuestionMAKEWORD macro Pin
kitty527-Jul-06 7:51
kitty527-Jul-06 7:51 
AnswerRe: MAKEWORD macro Pin
toxcct27-Jul-06 7:58
toxcct27-Jul-06 7:58 
AnswerRe: MAKEWORD macro Pin
kitty527-Jul-06 8:11
kitty527-Jul-06 8:11 
QuestionMS Access and CFileDialog conflict. Pin
na.nu27-Jul-06 7:50
na.nu27-Jul-06 7:50 
QuestionRe: MS Access and CFileDialog conflict. Pin
David Crow27-Jul-06 8:15
David Crow27-Jul-06 8:15 
AnswerRe: MS Access and CFileDialog conflict. Pin
Steve S27-Jul-06 21:51
Steve S27-Jul-06 21:51 
QuestionRe: MS Access and CFileDialog conflict. Pin
na.nu3-Aug-06 6:30
na.nu3-Aug-06 6:30 
AnswerRe: MS Access and CFileDialog conflict. Pin
Steve S9-Aug-06 1:52
Steve S9-Aug-06 1:52 
na.nu wrote:
What happens is that the application loses the DB connection. So after exporting when I click on the tree I have an error that displays DB connection lost.


This is not the result of a conflict between CFileDialog and the ATLDBCLI/OLEDB stuff.

How do you determine that the app has lost the db connection? Presumably you get errors when you try and access the db (eg clicking on tree)?
There's an AtlTraceError (or something) debugging function you can use which should give you more information on what's going wrong, but my normal rules for diagnosis would seem to apply.

Rule#1: Suspect your own code
Rule#2: Refer to rule#1.

It could be that when you use the CFileDialog, you're not initializing something correctly (like one of the pointers in the OFN structure), and it's trampling on some memory. This is notoriously difficult to diagnose; I generally dump the likely affected parts before and after calling the 'suspect' line.

Steve S
Developer for hire

QuestionOpinions wanted Pin
Wes Aday27-Jul-06 4:40
professionalWes Aday27-Jul-06 4:40 
AnswerRe: Opinions wanted Pin
David Crow27-Jul-06 4:46
David Crow27-Jul-06 4:46 
AnswerRe: Opinions wanted Pin
#realJSOP27-Jul-06 4:46
professional#realJSOP27-Jul-06 4:46 
AnswerRe: Opinions wanted Pin
toxcct27-Jul-06 4:54
toxcct27-Jul-06 4:54 
AnswerRe: Opinions wanted Pin
megaadam27-Jul-06 5:05
professionalmegaadam27-Jul-06 5:05 
AnswerRe: Opinions wanted Pin
Rob Caldecott27-Jul-06 5:25
Rob Caldecott27-Jul-06 5:25 
AnswerRe: Opinions wanted Pin
Nemanja Trifunovic27-Jul-06 5:26
Nemanja Trifunovic27-Jul-06 5:26 
GeneralRe: Opinions wanted Pin
toxcct27-Jul-06 5:36
toxcct27-Jul-06 5:36 
AnswerRe: Opinions wanted Pin
James R. Twine27-Jul-06 5:30
James R. Twine27-Jul-06 5:30 
AnswerRe: Opinions wanted Pin
peterchen27-Jul-06 5:34
peterchen27-Jul-06 5:34 
GeneralRe: Opinions wanted Pin
Wes Aday27-Jul-06 5:37
professionalWes Aday27-Jul-06 5:37 
AnswerRe: Opinions wanted Pin
Wes Aday27-Jul-06 5:34
professionalWes Aday27-Jul-06 5:34 
AnswerRe: Opinions wanted Pin
Stephen Hewitt27-Jul-06 16:30
Stephen Hewitt27-Jul-06 16:30 
QuestionC++ compiler on a flash drive Pin
Cprogramming21327-Jul-06 4:39
Cprogramming21327-Jul-06 4:39 
AnswerRe: C++ compiler on a flash drive Pin
#realJSOP27-Jul-06 4:48
professional#realJSOP27-Jul-06 4:48 
GeneralRe: C++ compiler on a flash drive Pin
Steve S27-Jul-06 6:13
Steve S27-Jul-06 6:13 
Questionhow to create a object containing only shared variables Pin
mmhu27-Jul-06 4:21
mmhu27-Jul-06 4:21 

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.