ESQL/C ver. 5.00 with c++ 
Author Message
 ESQL/C ver. 5.00 with c++

Hi there list!

I have a customer who has been using esql/c (4.10) with c++ on a HP 9000
platform with no problems.

To satisfy c++ argument handling they have declared the esql/c functions like

 void _iqdatabase(...);
 void _iqdbclose(...);
 void _iqdslct(...);

etc. with no problems at all.

They just upgraded to 5.0 and they had to add some functions like

 void _iqdbase(...);
 void _iqlocate_cursor(...);

and it seems that _iqlocate_cursor is somewhat different from the other
functions because the compiler gives an error:

 bad assignment type: _SQCURSOR * = void

The preprocessor generates the following code:

 extern _SQCURSOR *_iqnprep();
 static char *_Cn1 = "pointer_name"; static _SQCURSOR *_SQ1 = 0;

 if(!_SQ1) _SQ1 = _iqlocate_cursor(_Cn1, 0, 0, 0);

So the question is: How do they define the _iqlocate_cursor function, void
is definately not valid.

Thanks in advance,
--

Strengur Consulting Engineers      | Bang:     ...!uunet!strengur.is!snorri
Storhofdi 15                       | Phone:    +354 1 685130
112 Reykjavik Iceland              | Telefax:  +354 1 680628



Tue, 11 Oct 1994 23:38:08 GMT
 ESQL/C ver. 5.00 with c++


        (Snorri Bergmann) writes:

Quote:
>Hi there list!

        Hi Snorri!  Hope the weather in Iceland has gotten a bit better ;-).

Quote:
>and it seems that _iqlocate_cursor is somewhat different from the other
>functions because the compiler gives an error:

> bad assignment type: _SQCURSOR * = void

>So the question is: How do they define the _iqlocate_cursor function, void
>is definately not valid.

_iqlocate_cursor() is defined as type _SQCURSOR *
_SQCURSOR is defined in $INFORMIXDIR/incl/esql/sqlhdr.h

Dave Kosenko
Informix Software, Inc.

--
Disclaimer: These opinions are not those of Informix Software, Inc.
**************************************************************************
The heart and the mind on a parallel course, never the two shall meet.
                                                -E. Saliers



Wed, 12 Oct 1994 04:30:45 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Unwarrented warning from ESQL/C 5.00

2. Fw: Compile and Debug esql/c with Visual C++ 5.0 Or Borland C++ Builder 4.0

3. Help me with Visual C++ ver 4............

4. OCI.lib with Borland C++ Builder ver 3

5. NEWERA ver 3.0 needs C++ 4.2

6. C++, C++, C++, C++

7. ESQL/c C++

8. ESQL/C C++

9. @#!$ Grrrr ESQL and C++

10. ESQL and ANSI C or C++

11. repost : ESQL and ANSI C and C++

12. Linking C++ and ESQL/C (with dttofmtasc function) on UNIX


 
Powered by phpBB® Forum Software