List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:September 20 2001 4:21pm
Subject:Re: C API problems
View as plain text  
>Can someone give me a quick *complete* example code of setting up a 
>connection, performing a small query, and reading back the result?

Any of the standard MySQL clients included in the source distribution
that are written in C provide examples.  Some are more brief than others.

Another source of short examples can be found at:

http://www.kitebird.com/mysql-book/

Get the samp_db distribution.

>
>
>The docs conflict in a few places as far as how to declare the data types.

Where?

>  (in some places, they are pointers, in others they are not).  Also, 
>the examples, sadly, just aren't very good.  And there is no example 
>for
>mysql_use_result().  (the example code uses mysql_store_result())


Which examples aren't good?  Which ones show these discrepancies?

Note that the absence of a * doesn't necessarily mean something
is _not_ a pointer.  It might be a typedef.


>
>I have tried every combination of pointers and regular datatypes I 
>can think of, but I'm still generating errors on compile.


-- 
Paul DuBois, paul@stripped
Thread
C API problemsHaB JacKaL20 Sep
  • RE: C API problemsWill French20 Sep
  • RE: C API problemsWill French20 Sep
  • Re: C API problemsYen-Chu Chen20 Sep
  • Re: C API problemsLuke Chiam20 Sep
  • Re: C API problemsPaul DuBois20 Sep
  • Mysql.sock- Help!Sandeep Murthy20 Sep
    • RE: Mysql.sock- Help!J.M.Roth20 Sep