Re: Program with parameters in VC7

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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: 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)
  • RE: $dbh->tables() printing error messages for Oracle under Cygwi n pe rl 5.8
    ... $dbh->tablesprinting error messages for Oracle under ... > Use of uninitialized value in string eq at ... Give a hobbit a ring and he eats fish for an age. ...
    (perl.dbi.users)