473,320 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

A Shot in the Dark - mysql C++ api

I don't know if anyone knows anything about programming C++ to do mysql
database manipulation, but here it goes anyway ... I'm getting desperate
to find a solution.

I'm going absolutely freakin insane trying to figure out how to program
with mysql in Visual Studio 6.0. There's no official support for it that
I can see, and I'm having issues with mysql++ ... so much so that I've
*attempted* to install and use a unix system, although that just further
compounded my frustration ... and the book I have on mysql c apis has a
chapter on php (wtf, php needed a chapter, it's like the easiest of the
bunch to use to manipulate databases), a C api and a java api ... which
I'm not really interested in coding in as the file writing system sucks
IMO.

Anyway, I thought I got it working .. until I tried adding some code
beyond just connecting to the database I have running on my windows
machine and I ended up with something along the lines of 36 errors. So I
started a new project, followed the readme for mysql++ api to the 'T'
pulled out one of their examples, compiled and got 36 errors again,
about that time I wanted to just start throwing crap as this problem has
stopped me from moving forward at all with this programming project I've
been working on. All of the tutorials I've found are cryptic at best,
downright confusing and meaningless at worst.

I might be attempting to figure out FreeBSD which may or may not help as
I finished downloading it ... just waiting till Saturday to get a book
from Books a Million on it since they have a 20% off storewide sale.

Jul 19 '05 #1
5 4017
"Aaron Harvey" <sp**@mehere.com> wrote in message
news:W7********************@comcast.com...
I don't know if anyone knows anything about programming C++ to do mysql
database manipulation, but here it goes anyway ... I'm getting desperate
to find a solution.

I'm going absolutely freakin insane trying to figure out how to program
with mysql in Visual Studio 6.0. There's no official support for it that
I can see, and I'm having issues with mysql++ ... so much so that I've
*attempted* to install and use a unix system, although that just further
compounded my frustration ... and the book I have on mysql c apis has a
chapter on php (wtf, php needed a chapter, it's like the easiest of the
bunch to use to manipulate databases), a C api and a java api ... which
I'm not really interested in coding in as the file writing system sucks
IMO.

Anyway, I thought I got it working .. until I tried adding some code
beyond just connecting to the database I have running on my windows
machine and I ended up with something along the lines of 36 errors. So I
started a new project, followed the readme for mysql++ api to the 'T'
pulled out one of their examples, compiled and got 36 errors again,
about that time I wanted to just start throwing crap as this problem has
stopped me from moving forward at all with this programming project I've
been working on. All of the tutorials I've found are cryptic at best,
downright confusing and meaningless at worst.

I might be attempting to figure out FreeBSD which may or may not help as
I finished downloading it ... just waiting till Saturday to get a book
from Books a Million on it since they have a 20% off storewide sale.


I see on the mysql site that they have tech support
mailing lists. Why not try those? E.g:
http://lists.mysql.com/list.php?list=win32&sub=1

-Mike
Jul 19 '05 #2
"Aaron Harvey" <sp**@mehere.com> wrote...
I don't know if anyone knows anything about programming C++ to do mysql
database manipulation, but [...]


Perhaps you've chosen not the best way to explain your problem. Try
to start over and before you post again, read the FAQ, section 5.
You can find FAQ here: http://www.parashift.com/c++-faq-lite/ . You
seem to need an answer to question 5.8. But don't skip the rest,
plenty of good information there.

Victor
Jul 19 '05 #3
Hi,

Accessing the mysql database from a unix system is quite easy (with C
calls). If you want I can send you some code I used.

Accessing it from a (remote) windows system should also work at least with
the mysql ODBC drivers (I tried it once and it worked however it was only a
test to see if I could make it work).

I never tried the mysql++ api though, I just use the C calls (it are only a
few calls and you can wrap them yourself in some C++ classes).

Regards, Ron AF Greve

"Aaron Harvey" <sp**@mehere.com> wrote in message
news:W7********************@comcast.com...
I don't know if anyone knows anything about programming C++ to do mysql
database manipulation, but here it goes anyway ... I'm getting desperate
to find a solution.

I'm going absolutely freakin insane trying to figure out how to program
with mysql in Visual Studio 6.0. There's no official support for it that
I can see, and I'm having issues with mysql++ ... so much so that I've
*attempted* to install and use a unix system, although that just further
compounded my frustration ... and the book I have on mysql c apis has a
chapter on php (wtf, php needed a chapter, it's like the easiest of the
bunch to use to manipulate databases), a C api and a java api ... which
I'm not really interested in coding in as the file writing system sucks
IMO.

Anyway, I thought I got it working .. until I tried adding some code
beyond just connecting to the database I have running on my windows
machine and I ended up with something along the lines of 36 errors. So I
started a new project, followed the readme for mysql++ api to the 'T'
pulled out one of their examples, compiled and got 36 errors again,
about that time I wanted to just start throwing crap as this problem has
stopped me from moving forward at all with this programming project I've
been working on. All of the tutorials I've found are cryptic at best,
downright confusing and meaningless at worst.

I might be attempting to figure out FreeBSD which may or may not help as
I finished downloading it ... just waiting till Saturday to get a book
from Books a Million on it since they have a 20% off storewide sale.

Jul 19 '05 #4
"Aaron Harvey" <sp**@mehere.com> wrote in message
news:W7********************@comcast.com...
I don't know if anyone knows anything about programming C++ to do mysql
database manipulation, but here it goes anyway ... I'm getting desperate
to find a solution.

I'm going absolutely freakin insane trying to figure out how to program
with mysql in Visual Studio 6.0. There's no official support for it that
I can see, and I'm having issues with mysql++ ... so much so that I've
*attempted* to install and use a unix system, although that just further
compounded my frustration ... and the book I have on mysql c apis has a
chapter on php (wtf, php needed a chapter, it's like the easiest of the
bunch to use to manipulate databases), a C api and a java api ... which
I'm not really interested in coding in as the file writing system sucks
IMO.

Anyway, I thought I got it working .. until I tried adding some code
beyond just connecting to the database I have running on my windows
machine and I ended up with something along the lines of 36 errors. So I
started a new project, followed the readme for mysql++ api to the 'T'
pulled out one of their examples, compiled and got 36 errors again,
about that time I wanted to just start throwing crap as this problem has
stopped me from moving forward at all with this programming project I've
been working on. All of the tutorials I've found are cryptic at best,
downright confusing and meaningless at worst.

I might be attempting to figure out FreeBSD which may or may not help as
I finished downloading it ... just waiting till Saturday to get a book
from Books a Million on it since they have a 20% off storewide sale.


I run mysql on a unix box but in Python rather than C++. As much as I love
C++ I must say the Python route was extremely easy.

--
Cy
http://home.rochester.rr.com/cyhome/
Jul 19 '05 #5
The answer here is going to depend on what you are trying to do.
1. Are you locked into the mySQL api or are you able to use a more
general non database proprietary protocol?

2. Do you need to run on both Windows & Unix?

If you want a general C++ database library that runs against mySQL on
Windows and Unix you could look at:

Database Template Library: STL type interface for databases - uses
mySQL ODBC interface:
http://dtemplatelib.sourceforge.net/index.htm

OTL: Streams interface for databases:
http://otl.sourceforge.net/home.htm

Other possibilities include wxWindows.
Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: sam | last post by:
Hello Coders I have a question can we have a php script or function to take screen shot for webpage? for example , let the php script take a shot for www.google.com and convert the content...
0
by: Philippe Meunier | last post by:
Hi, I am using the .NET toolbar with VB.NET 2003. My toolbar uses icons images that are actually PNG files and uses alpha blending on it. So to make alpha blending work correctly with the...
8
by: gregory_may | last post by:
Is there a way to grab a "Screen Shot" that includes "Tool Tips"? I saw this code someplace, cant remember where. But it doesnt grab "Tool Tips". Is there a better way to do this in .net?...
28
by: John Bailo | last post by:
Funny, how Bill Gate uses the Deutsches Bank and Barron's to defraud people and try to wreck his competitors ( he can't ). For example, ...
8
by: VooDoo | last post by:
Hi, I have created a ticket system where users can submit their problem. After several month of experience it appears that offering a zone to paste a screen shot will be ideal. Is there anyway to...
1
by: Jawad Rehman | last post by:
Hi.. I want to develp a window service in c# .the purpose of the service is to take a screen shot of a desktop after several specified time span. My problem is that how i take screen shot of...
3
by: Simon | last post by:
Dear reader, I have a Snap Shot file located in a folder. Now I like to view the Snap Shot file. First I created a string with the full pathname and Snap Shot file.
5
by: bdy120602 | last post by:
Is it possible, when a user or viewer of your Web page, prints or takes a screen shot of a Web page with mousover (roll-over) text in it, to have that text printed or captures as part of the screen...
2
by: zubair1 | last post by:
Hi, I just recently downloaded Dark GDK from Microsoft's Website i was using Visual Studio 2005 when i was installing the Dark GDK it said it didn't find the C++ Compiler and asked me if i want...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.