Re: [Q] Compatibility of Oracle Pro*C and C++
Date: 7 Oct 93 17:56:53 GMT
Message-ID: <DAVIDM.93Oct7105653_at_malibu.consilium.com>
<>>>> On 1 Oct 93 19:34:51 GMT, pytlik_at_eris.cs.umb.edu (Marek Pytlik) said:
< In article <MLOENNRO.93Oct1010026_at_wrpyr4.us.oracle.com> mloennro_at_us.oracle.com (Magnus Lonnroth) writes:
<>At the moment, there is no way of including embedded SQL in C++ modules.
< How about this:
< cBroadcast::open( int id)
< Similary you can do cBroadcast::fetch, and others.
<>To use Pro*C v1 (and v2 soon to be released) you must write extern C
< All you have to do (oracle unsupported), is to have something like:
< extern "C" {
< {
< // our macro
< EXEC SQL DECLARE CB1 CURSOR FOR
< ...
< WHERE ID=...
< ;
< EXEC SQL OPEN CB1;
< return 0;
< fail:
< return 1;
< }
< extern void sqlbcc( int*, int* );
< ...
< }
Can you elaborate on what you're doing here? It seems fairly Oracle specific and, therefore, likely to fail at the next Oracle patch or version change. What is sqlbcc()?
-- ==================================================================== David Masterson Consilium, Inc. (415) 691-6311 640 Clyde Ct. davidm_at_consilium.com Mtn. View, CA 94043 ==================================================================== "If people behaved like governments, you'd call the cops." -- Kelvin ThroopReceived on Thu Oct 07 1993 - 18:56:53 CET