Solved

is it possible to use odbc without mfc ???

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now