Connecting access database

K

Krish

Hi Friends,

Does anyone know how to connect access database into Visual C++ in
Visual Studio 6.0. I know the procedure to connect access database
into Visual Studio .Net. But Visual Studio 6.0 is more complicted
than .Net. Can someone help me pls?

Thanks

Krish
 
W

William DePalo [MVP VC++]

Krish said:
Does anyone know how to connect access database into Visual C++ in
Visual Studio 6.0. I know the procedure to connect access database
into Visual Studio .Net. But Visual Studio 6.0 is more complicted
than .Net. Can someone help me pls?

I just looked at some old ODBC code of mine that goes back about a decade.
It calls SQLAllocEnv() to allocate a database environment handle,
SQLAllocConnect() with that environment handle to allocate a connection
handle and SQLDriverConnect() with the connection handle and the connection
string in the form of "DSN=<your ODBC data set name">.

Of course, ODBC is as old as the sample and there are myriad other ways for
doing database stuff, none of which is the subject of this group. You might
want to peruse MSDN for information on ODBC, OLEDB, ADO (or the database
classes in MFC about which I know nothing) etc to choose a technology and
then find a group that covers it.

Regards,
Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top