How to import MS Access 97 
Author Message
 How to import MS Access 97

Hello,

I am trying to convert a VB Application that references Access 97 to a VC++
Application.

Could anyone please tell me how to import MS Access 97.   There's a demo in
MSDN how to import Excell but nothing for Access.

I believe you have to include the lines below

#import <vbeext1.old> ....
#import <ms097.dll> ...
#import <msacc8.olb> ...
#import <dao350.dll> ...

I think there should be another library to add to this because I am having
20 errors about RecordsetPtr, RecordetClone, DBEngine not being defined
anywhere yet.

Thank you very much.

Ares



Mon, 29 Jul 2002 03:00:00 GMT  
 How to import MS Access 97
I've used:

////////////////////////////////////////////////////////////////////////////
///
// ImportDAO.h
////////////////////////////////////////////////////////////////////////////
///

#pragma once

#import "C:\Program Files\Common Files\Microsoft Shared\DAO\DAO350.DLL"
no_namespace rename("EOF", "dbEOF")

Search MSDN for the specific error you are getting--I remember a problem
like that and I think it was the version of DAO..

-Paul

--------------------------------------------------------
Paul Little, Senior Programmer/Analyst
SVi Retail Systems
San Diego, CA


Quote:
> Hello,

> I am trying to convert a VB Application that references Access 97 to a
VC++
> Application.

> Could anyone please tell me how to import MS Access 97.   There's a demo
in
> MSDN how to import Excell but nothing for Access.

> I believe you have to include the lines below

> #import <vbeext1.old> ....
> #import <ms097.dll> ...
> #import <msacc8.olb> ...
> #import <dao350.dll> ...

> I think there should be another library to add to this because I am having
> 20 errors about RecordsetPtr, RecordetClone, DBEngine not being defined
> anywhere yet.

> Thank you very much.

> Ares



Mon, 29 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to import MS Access 97

2. How to import MS Access 97

3. Is there a C/C++ library to access MS Access 97

4. The Cross-linking problem for MS Access 97

5. Using VC++ 6.0 as an automation client to view and print reports from MS Access 97

6. ODBC MS Access 97 Login Failed?

7. VARIANT type for automatization (call MS Access 97 from MFC program)

8. Call MS Access 97 autotatization from MFC program

9. MS Access 97 Reports in VC Application?

10. Does V5.0 MFC support MS Access '97

11. Access 95 -> Access 97

 

 
Powered by phpBB® Forum Software