Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C access to MySQL under Windows

Status
Not open for further replies.

wapboy

Technical User
Oct 26, 2002
13
0
0
GB
I'm a newbie to C and I want to access a MySQL database from my C program running on Windows XP or 98. I've seen some references to doing this but they seem quite complex.

Is there an easy way of doing this - I'm using Dev-C++ compiler.

Alternatively, is it possible to call PERL code from a C program as MySQL access in PERL is straightforward.

Thanks

Paul
 
Have you considered using the C++ API for MySQL rather than the C API.
It should at least hide some of the gory detail away from you within a class structure.

> is it possible to call PERL code from a C program
It's certainly possible for PERL to call C. Somewhere in the PERL documentation is the detail of how to make the two interact, but that's outside the scope of this forum.

--
 
standard ODBC API is quite enough

Ion Filipski
1c.bmp
 
You can embed the perl interpreter in your C code, if that is what you want.
See the "perlembed" man page for more details. But if your are not experienced with C and don't know the basics of the perl internals you will run into troubles ...
"perlguts" man page is a must read for a tutorial on perl internals

Regards,
Adrian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top