|
-
July 2nd, 2012, 02:14 AM
#1
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.
-
July 2nd, 2012, 05:25 AM
#2
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;
Victor Nijegorodov
-
July 2nd, 2012, 05:51 AM
#3
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.
Be sure to rate those who help!
-------------------------------------------------------------
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
-
July 2nd, 2012, 06:19 AM
#4
Re: How to make DAO connection in VC++ 6.0 ?
 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
-
July 2nd, 2012, 06:23 AM
#5
Re: How to make DAO connection in VC++ 6.0 ?
What versions of DAO and MDAC are you using?
Victor Nijegorodov
-
July 2nd, 2012, 06:28 AM
#6
Re: How to make DAO connection in VC++ 6.0 ?
-
July 2nd, 2012, 06:36 AM
#7
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
-
July 2nd, 2012, 06:38 AM
#8
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...
Victor Nijegorodov
-
July 2nd, 2012, 06:45 AM
#9
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
-
July 2nd, 2012, 07:12 AM
#10
Re: How to make DAO connection in VC++ 6.0 ?
 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!
Victor Nijegorodov
-
July 2nd, 2012, 10:16 PM
#11
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|