ESQL/C ver. 5.00 with c++
Posted in 1992
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, -- Snorri Bergmann | Internet: snorri@strengur.is Strengur Consulting Engineers | Bang: ...!uunet!strengur.is!snorri Storhofdi 15 | Phone: +354 1 685130 112 Reykjavik Iceland | Telefax: +354 1 680628