By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,635 Members | 2,188 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,635 IT Pros & Developers. It's quick & easy.

Connecting access database

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Krish" <kr**********@yahoo.ca> wrote in message
news:b8*************************@posting.google.co m...
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

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.