How to make DAO connection in VC++ 6.0 ?
when I added new class of type MFC class and given base class as CDaoRecordset and clicked ok,
Wizard opens Database option dialog box ,selecting DAO radio button. When I selected Data.mdb file,it gives error
Unrecognized Database format. My file is not corrupt ,as odbc connectivity works fine. But to avoid DSN creation I want
DAO connectivity. Does I have to install anything,so that DAO Connectivity is possible ?if yes where can I get it.
I have VC++ 6.0 and Access 2000.
Re: How to make DAO connection in VC++ 6.0 ?
Try do add this line in the beginning of your App class InitInstance method:
Code:
AfxGetModuleState()->m_dwVersion = 0x601;
Re: How to make DAO connection in VC++ 6.0 ?
It's also possible that VC6 (very old) may not be able to handle .mdb files saved with MS Office 2003/2007, unless they are saved in a mode that's compatible with Offfice 97.
Good luck.
Re: How to make DAO connection in VC++ 6.0 ?
Quote:
Originally Posted by
VictorN
Try do add this line in the beginning of your App class InitInstance method:
Code:
AfxGetModuleState()->m_dwVersion = 0x601;
I added the line but it didnot help,while adding the class itself ,step comes where we have to give path to mdb and there only error comes
Re: How to make DAO connection in VC++ 6.0 ?
What versions of DAO and MDAC are you using?
Re: How to make DAO connection in VC++ 6.0 ?
Re: How to make DAO connection in VC++ 6.0 ?
I have saved in access 2000 format,which is lowest one it allows to save
Re: How to make DAO connection in VC++ 6.0 ?
Did you ever hear that Google exists?
Then type in in Google Search box MDAC and look at a couple of found items...
Re: How to make DAO connection in VC++ 6.0 ?
I downloaded MDAC finder tool,but as I dont have admin rights of pc ,I am unable to install it,lets see it tomorrow
Re: How to make DAO connection in VC++ 6.0 ?
Quote:
Originally Posted by
shivditya
I downloaded MDAC finder tool,but as I dont have admin rights of pc ,I am unable to install it,lets see it tomorrow
I wonder, how you could develop not being Admin on your developer PC! :confused:
Re: How to make DAO connection in VC++ 6.0 ?
Actually My pc is down I am at my colleagues pc,who is at present in another country