Click here to Skip to main content
15,918,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help::i have made a sudoku solver but it not workin Pin
David Crow27-Jul-06 10:49
David Crow27-Jul-06 10:49 
AnswerRe: Help::i have made a sudoku solver but it not workin Pin
Christian Graus27-Jul-06 11:17
protectorChristian Graus27-Jul-06 11:17 
QuestionC++ question Pin
Alex_Y27-Jul-06 8:56
Alex_Y27-Jul-06 8:56 
AnswerRe: C++ question Pin
valikac27-Jul-06 9:01
valikac27-Jul-06 9:01 
GeneralRe: C++ question Pin
Alex_Y27-Jul-06 9:07
Alex_Y27-Jul-06 9:07 
GeneralRe: C++ question Pin
valikac27-Jul-06 9:20
valikac27-Jul-06 9:20 
GeneralRe: C++ question Pin
Alex_Y27-Jul-06 9:26
Alex_Y27-Jul-06 9:26 
GeneralRe: C++ question Pin
Alex_Y27-Jul-06 9:41
Alex_Y27-Jul-06 9:41 
AnswerRe: C++ question Pin
toxcct27-Jul-06 21:26
toxcct27-Jul-06 21:26 
GeneralRe: C++ question Pin
Alex_Y28-Jul-06 1:57
Alex_Y28-Jul-06 1:57 
GeneralRe: C++ question Pin
Zac Howland28-Jul-06 8:58
Zac Howland28-Jul-06 8:58 
Questionfunction header = 0 Pin
Jay0327-Jul-06 8:38
Jay0327-Jul-06 8:38 
AnswerRe: function header = 0 Pin
valikac27-Jul-06 9:03
valikac27-Jul-06 9:03 
GeneralRe: function header = 0 Pin
Jay0327-Jul-06 9:04
Jay0327-Jul-06 9:04 
GeneralRe: function header = 0 Pin
Alex_Y27-Jul-06 9:15
Alex_Y27-Jul-06 9:15 
AnswerRe: function header = 0 Pin
markkuk27-Jul-06 11:42
markkuk27-Jul-06 11:42 
QuestionHow to Load Bitmap in CImageList from outside????? [modified] Pin
MacGadger27-Jul-06 8:00
MacGadger27-Jul-06 8:00 
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

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.