Re: Program with parameters in VC7
- From: "socket_newbee" <socketnewbee@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Jun 2005 16:55:03 -0700
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
>
.
- Follow-Ups:
- Re: Program with parameters in VC7
- From: Gert
- Re: Program with parameters in VC7
- From: Victor Bazarov
- Re: Program with parameters in VC7
- References:
- Program with parameters in VC7
- From: socket_newbee
- Re: Program with parameters in VC7
- From: Victor Bazarov
- Program with parameters in VC7
- Prev by Date: Re: Error: Could not find the file 1200.
- Next by Date: fontedit (VC 6.0)
- Previous by thread: Re: Program with parameters in VC7
- Next by thread: Re: Program with parameters in VC7
- Index(es):
Relevant Pages
|