MySQL Forums
Forum List  »  Connector/C++

Mixing Connector C++ with vanilla C interface calls?
Posted by: Jean-Denis Muys
Date: September 20, 2009 05:23PM


I am using Connector/C++ 1.05 successfully under MacOS X 10.6 using XCode 3.2.

Now I want to call some routines from the C interface to mySQL from the same client. Is this possible?

As an example I want to call

my_ulonglong mysql_insert_id(MYSQL *mysql)

From my code. How would I do that? (Yes I know about the equivalent SQL query).

The three issues I can see are:

- can I #include <mysql.h> without conflicting with the Connector/C++?
- is there any additional library I need to link with?
- how can I retrieve the MYSQL *mysql from the Connector/C++ connection?

Thanks for any suggestion.


Options: ReplyQuote

Written By
Mixing Connector C++ with vanilla C interface calls?
September 20, 2009 05:23PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.