Re: Program with parameters in VC7

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I know about command line parameters....But thats not what I am looking for....

The parameter is coming in from an oracle form....
i have to pass the oracle form parameter to the function...
do the computation
return a string back to the oracle form ....






"Victor Bazarov" wrote:

> socket_newbee wrote:
> > I would like to call a C/C++ program from oracle. This program will be
> > compiled in VC7.
> >
> > Oracle forms will pass a string to the C program which will return the
> > result back to Oracle . The result is also a string.
> >
> > Syntactically it may not be correct, but this is what I need to do .
> >
> > Main( string arr, int val)
> > {
> > ------
> > return res_arr;
> > }
> >
> > How can I write this program ?..any example ?...
>
> What book on C++ (or VC++) are you reading that doesn't show how to use
> command-line examples passed to the program?
>
> _Programs_ are not defined as returning *strings*. They return integer
> values, known as "return codes". If you need a string returned, perhaps
> you need something closer to a dynamic library (or a plugin of some kind)
> and it should be Oracle-specific...
>
> V
>
.



Relevant Pages

  • Re: Intermittent problem in data transfer MSAccess to Oracle using VB
    ... It retrieves data from a MSAccess database and writes to an Oracle ... Dim LogFileName As String, ff As Long, QueryName As String ... Dim MSAccessConn As String ...
    (microsoft.public.vb.general.discussion)
  • Re: Query Oracle from Excel
    ... You will need the Oracle client sofware installed on the PC you're running ... What exactly is DBDataProvider and DBDataSource? ... Global prmUsername As String ... Dim adoConn As New ADODB.Connection ...
    (microsoft.public.excel.programming)
  • RE: Query Oracle from Excel
    ... Ron, thanks for your help...this is REALLY helping me!!!! ... Now, let's say that Oracle resides on the LAN/WAN somewhere, and I don't ... Global prmUsername As String ... Dim adoConn As New ADODB.Connection ...
    (microsoft.public.excel.programming)
  • Re: Storing time values via jdbc thin driver
    ... In Oracle you don't have just time anyway. ... Java knows Time and Date, ... There is a date data type which has a time ... string or character value. ...
    (comp.databases.oracle.server)
  • Re: Re-logging into An Oracle Database
    ... I've done it in MS SQL but never in Oracle. ... My connection string seems to work, but the app seems to keep the old userid so I can't see the tables I need to see. ... What I prefer to do is use PTQs is to run updates via VBA, something like this. ... 'no error handling included here for this post, but error procs can be included to return a false for this function of the query does not execute. ...
    (comp.databases.ms-access)