Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to Load Bitmap in CImageList from outside????? Pin
Hamid_RT27-Jul-06 22:44
Hamid_RT27-Jul-06 22:44 
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 
Hi,

I am using standard accessor classes and using the Microsoft Jet DB engine 4.0. I open a session to the DB. Populate a grid with info from a table. There is a tree view which when clicked loads a different table. The user should be able to edit the contents, so I export the data to a .csv file using CFile and CArchive classes. The thing is I am launching a CFile dialog on clicking a button for exporting this data. 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.

Now what is really wierd is that I have functionality for importing data from the file. I have a copy of the database on the desktop and in my debug folder in a nested directory in C:\.. When I export I loose the connection to the Access DB in the debug folder. On importing somehow the DB on the desktop gets updated. The DB's have the same name and contents. I connect to the DB using a initialization string. Is the path of the DB need to passed for connection? If not then why does CFile dialog statement cause the app to loose the connection? I removed the CFile dialog statement and hardcoded a path to C:\XYZ.csv. Worked fine. By the way the code for setting up the connection is in another DLL and not in the executable. Have you faced this problem?

na.nu
AnswerRe: MS Access and CFileDialog conflict. Pin
Steve S9-Aug-06 1:52
Steve S9-Aug-06 1:52 
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 

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.