Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

is it possible to use odbc without mfc ???

Posted on 1998-11-19
4
Medium Priority
?
289 Views
Last Modified: 2008-02-01
surely it is!? But how?

how do i make the equivelant of a CDatabase Object and how do i open an access database and load it without using MFC. becuase u cant use mfc with the web, so there must be  a way. Im an oldie with c++ but new to odbc.
0
Comment
Question by:01875621
  • 2
4 Comments
 
LVL 10

Expert Comment

by:rbr
ID: 1178308
There are severel other programming languages hich can use ODCB. One is 4D by ACI (www.aci.com). This is a database language which has a full WEB support and is able to use ODCB.
0
 
LVL 10

Expert Comment

by:rbr
ID: 1178309
Sorry use www.aci.fr
0
 

Author Comment

by:01875621
ID: 1178310
Ya, but I have to use c++, I have a server side access database, and I want to be able to use an odbc interface to load, retrieve and save data back to it....HOW CAN I do this?
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 200 total points
ID: 1178311
If you don't want to use MFC, you're not going to have anything like a CDatabase object. Unless, of course, you get it form some other library or invent it yourself.

The ODBC API is well-documented; there are at least two MS-Press books on it, and there's tons of info on it in MSDN about the APIs. You'll need to read up on the APIs and figure out which ones you will use for your application--they'll depend greatly on what, exactly, your application will do.

To get started, you can connect to your data source with the SQLConnect() and disconnect with SQLDisconnect().

What do you mean by "You can't use MFC with the web"? If you mean that you can't put MFC in server-side web scripts or apps, nothing could be further from the truth!

B ekiM

0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question