Solved

is it possible to use odbc without mfc ???

Posted on 1998-11-19
4
271 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 100 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dynamically allocate memory 9 58
How to split this in C++ 4 102
Printing the elements of a set declared inside a map in C++. 3 48
c++ syntax question 9 49
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

777 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