ADO problem 
Author Message
 ADO problem

Hi every body,

Can anybody tell me why this code do not work ?

I try to use ADO to open a mdb database in my application but with the
following declaration

 _ConnectionPtr m_pConnection;

I obtain the following error message :

 "error C2501: 'm_pConnection' : missing storage-class or type specifiers"

Other info : I use import instruction like this :

#import "C:\Program Files\Common Files\System\ADO\msado15.dll" \
    no_namespace rename("EOF", "EndOfFile")

thanks in advance



Thu, 05 Sep 2002 03:00:00 GMT  
 ADO problem
Sounds like a common header sequence problem.  Is your #import before your
use of _ConnectionPtr?  The #import declares the header file for the ADO
stuff.  So that must come before any use of any ADO objects.


Quote:
> Hi every body,

> Can anybody tell me why this code do not work ?

> I try to use ADO to open a mdb database in my application but with the
> following declaration

>  _ConnectionPtr m_pConnection;

> I obtain the following error message :

>  "error C2501: 'm_pConnection' : missing storage-class or type specifiers"

> Other info : I use import instruction like this :

> #import "C:\Program Files\Common Files\System\ADO\msado15.dll" \
>     no_namespace rename("EOF", "EndOfFile")

> thanks in advance



Thu, 05 Sep 2002 03:00:00 GMT  
 ADO problem
It looks fine...email me your project & I'll look at it.




Wed, 18 Sep 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ATL / ADO problems while closing connection

2. free threaded ATL, MTS, ADO problem

3. Wierd ADO problem

4. Multi-threaded ADO problem in VC++

5. An ADO Problem

6. CHAR, adVarWChar, ADO problem.

7. ADO problems

8. ADO Problem with calling a stored procedure in MS Access 2000

9. COM / ADO - Problems while closing connection

10. ADO problem accessing dBASE tables

11. |||||||||| ADO : PROBLEM WITH MoveFirst AND EndOfFile under Visual C++ 6.0 |||||||||||

12. |||||||| ADO : Problem with msado15.tlh file in MFC Extension DLL ||||||||

 

 
Powered by phpBB® Forum Software