How to use an Oracle database under Visual C++ (ODBC is not necessary)

From: Valentin Welter <valentin.welter_at_t-online.de>
Date: 4 Feb 2003 10:25:08 -0800
Message-ID: <7f0ff6a5.0302041025.4f434278_at_posting.google.com>



Howdy!

You can find on my Web-site http://valentin.welter.bei.t-online.de the [Quoted]  MS Visual C++ Project OradB that represents a minimal solution for an Oracle-Database application using the Oracle SQL*Plus Tool. The program sqlplus is called to carry out the database operations. This sample represents the framework. Since the user can choose the database and the schema (user/password), he can further develop or adjust it for other databases.

Prerequisites

  • Operating systems: Windows 95,98,2000,XP,NT
  • MS Visual C++.
  • Oracle Client or Personal Oracle.
  • A local or remote database, which has the table dept.

The table dept must have the columns deptno, dname, loc. Each Oracle Release has such a demo database.

Disadvantage

The sqlplus calls are system calls:

  • They produce visible MS-DOS windows.
  • The application has to wait for their finishing.

Enclosed two dialog input screens:

  • connect.jpg
  • department.jpg

Have a lot of fun! Received on Tue Feb 04 2003 - 19:25:08 CET

Original text of this message