DAO in VC++ not working.
-
Hello, I will really appreciate any input on the following problems. I am implementing the Database operations using MFC .. and using DAO. The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. It just simply quits! This was happening when I was implementing ODBC in the same program. The screen where it is supposed to display the data, when it goes to the screen .. it just disappears and terminates. My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. I am wondering if there are some win registry entries that are not being updated or something. Thank you very much for your time and help ! Sincerely, Anjum.
-
Hello, I will really appreciate any input on the following problems. I am implementing the Database operations using MFC .. and using DAO. The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. It just simply quits! This was happening when I was implementing ODBC in the same program. The screen where it is supposed to display the data, when it goes to the screen .. it just disappears and terminates. My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. I am wondering if there are some win registry entries that are not being updated or something. Thank you very much for your time and help ! Sincerely, Anjum.
a3gupta wrote: The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. Does your installation program for your application include installation of DAO runtime components? a3gupta wrote: My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. What version of MFC do you use?
-
a3gupta wrote: The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. Does your installation program for your application include installation of DAO runtime components? a3gupta wrote: My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. What version of MFC do you use?
Thank you very much for your response. I am installing following files in my installation program: DAO350.DLL DAO2535.TLB MSJTER35.DLL MSJINT35.DLL MSVCRT40.DLL MSJET35.DLL MSRD2X35.DLL MSJTER35.DLL MSJINT35.DLL VBAJET32.DLL VBAR332.DLL I am using Visual Studio 6. So .. Visual C++ 6. It works fine on my computer .. but doesn't work on somebody elses computer. They don't have Visual Studio installed .. But ... I run the installation program. I am making the setup program using Installshield for Visual C++ 6. Thank! Hope this infomation will be useful. Sincerley, Anjum.
-
Thank you very much for your response. I am installing following files in my installation program: DAO350.DLL DAO2535.TLB MSJTER35.DLL MSJINT35.DLL MSVCRT40.DLL MSJET35.DLL MSRD2X35.DLL MSJTER35.DLL MSJINT35.DLL VBAJET32.DLL VBAR332.DLL I am using Visual Studio 6. So .. Visual C++ 6. It works fine on my computer .. but doesn't work on somebody elses computer. They don't have Visual Studio installed .. But ... I run the installation program. I am making the setup program using Installshield for Visual C++ 6. Thank! Hope this infomation will be useful. Sincerley, Anjum.
I am not sure, if this article Q236991 will solve the all your troubles, but at least second one should be rectified.
-
Hello, I will really appreciate any input on the following problems. I am implementing the Database operations using MFC .. and using DAO. The problem is when the program goes to get the data, it just quits. THIS HAPPENS ONLY ON SOME COMPUTERS. It just simply quits! This was happening when I was implementing ODBC in the same program. The screen where it is supposed to display the data, when it goes to the screen .. it just disappears and terminates. My database is in .mdb format. The other problem is that it says "Unrecognized database format" if I write my database in Access 2000. I am wondering if there are some win registry entries that are not being updated or something. Thank you very much for your time and help ! Sincerely, Anjum.
Hi, I had the same problem with "Unrecognized database format" and I solved it like this: In InitInstance() of my App-Class I put the follwing line: AfxGetModuleState()->m_dwVersion = 0x0601; That was it. For further Information see the follwing Article on MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmsj00/html/cpp0100.asp I hope that helps you. MS