I need to use ADO in a C program, where classes should not be used. Is it possible?
thx
Printable View
I need to use ADO in a C program, where classes should not be used. Is it possible?
thx
from where are you going to use ADO? VS enviroment?
There's a tutorial in the article section here.
http://www.codeguru.com/mfc_database/index.shtml
"Writing a comment in your source does not necessariliy mean that your source is commented"
I wrote it in VC
in your StdAfx.h :
#import "C:\Program Files\comun files\system\ado\msado15.dll" rename_namespace("AdoNS") rename "EOF", "adoEOF" ) rename( "EOS", "adoEOS" )
using namespace AdoNS;
look at following classes:
_ConnectionPtr
_RecordsetPtr
_CommandPtr
_StreamPtr (not very usefull)
_RecordPtr (not very usefull)
there are doc in MSDN:
"Command (ADO for Visual C++ Syntax)"
"Recordset (ADO for Visual C++ Syntax)"
"Connection (ADO for Visual C++ Syntax)"
...
I hope it's help :)
...addicted to cpp...
but in C, not in C++, how can I use it?