Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Porting C++ App to Oracle

Re: Porting C++ App to Oracle

From: Hans Forbrich <forbrich_at_yahoo.net>
Date: Wed, 08 Sep 2004 00:00:31 GMT
Message-ID: <zYr%c.155627$X12.11337@edtnps84>


Questioner wrote:
>
> Thanks, I will elaborate.
>
> I have a C++ application which saves data to files in a properietary
> binary
> format composed of nested C Structures. The user interface is a grid
> control in a dialog box along with some pull downs.
> As mentioned, the user data is currently saved in individual binary
> files with each user having their own directory to hold their files.
>
> I know nothing of Oracle development tools but assume that it can
> replicate the current GUI that I created with C++. Once I convert to
> Oracle, the user data
> would be stored in a database whoose table structure would be designed
> similarly to what is in the binary files now. My concerns are how
> well Oracle communicates with a variety of vendor supplied DLL's (some
> of them often poorly documented which is why I was hoping that there
> would be some Oracle equivalent to Microsoft's excellent #import
> directive in their C++ compiler) and also how do I provide for those
> users who wish to run the application on their stand alone laptops
> (perhaps there is some portable Oracle whose database can be merged
> with the main one periodcially?
>
> I am inclined to avoid Java and so would be inclined to do everything
> (GUI and communication with DLL's) in whatever the Oracle development
> language is.
> I'm intrigued by one respondent who said that you can embed some C++,
> I will research that.
>
> Anyway, I will consult the link you suggested, ont.oracle.com
>
> Thanks Again
> Tak

Bottom line - Oracle does not provide any replacement for MFC. However, two of Oracle's tools can be used to provide an OS-independant form: Oracle Forms and Oracle JDeveloper.

JDeveloper is heavily Java oriented, so that is of limited interest to you. It is, however, the most reasonable alternative - Java and C++ are kissing cousins and the MFC equivalent is Swing.

DLL is a Microsoft-ism. In the *nix world, the equivalent is .so (shared object). Oracle does not communicate with any third-party DLLs, your code would do that. Bluntly, you are barking up a dead tree here.

What you really seem to want, and what Oracle can provide, is an alternative to your serialization - you currently serialize to binary file, and that can be replaced with ODBC-style output to database instead. Oracle's strength lies in what can be done with the data once it has been stored.

To proceed, you would be best off reading Oracle's Concepts manual. Without that background you will continue asking the wrong questions ad ill go nowhere in the Oracle track. The manual is at http://docs.oracle.com

The link I sugested is OTN.oracle.com (not ont) OTN = Oracle Tech Net Received on Tue Sep 07 2004 - 19:00:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US