Solved

is it possible to use odbc without mfc ???

Posted on 1998-11-19
4
277 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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.

627 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