473,473 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CPP builder 6 and MySQL with or without VCL ?


Hi

I am trying to access MySQL DB with C++ Builder 6 pro,
I have Apache 2 under W2000 pro and MySQL 4

I found
http://crlab.com/mydac/
but it is not free :-(
but the trial version seems to work

I will also have a look to :
http://zeoslib.sourceforge.net/modul...name=Downloads

I need things simpler with no VCL
SO I found an example of :
____________________________________________
Author: Jethro Wright, III TS : 3/ 4/1998 9:15 */
/* Date: 02/18/1998 */
/* mytest.c : do some testing of the libmySQL.DLL.... */
/* */
/* History: */
/* 02/18/1998 jw3 also sprach zarathustra.... */
____________________________________________

it works under C++builder 6 pro in consoile mode and "C" syntax

after rebuilding the .lib .def with implib impdef in order to link them with
his C source

but If I rename its file to .CPP
and rebuild it gives lot of errors (that where warnings before) because of
the use of :
char * pszT;
and mysql DLL functions are returning a const char *

also when I include <VCL.h> file (in order to use VCL forms) then no
building is possible :-(

mysql_com.h
gives errors near :

ypedef struct st_net {
Vio* vio;
unsigned char *buff,*buff_end,*write_pos,*read_pos;
----->>>> my_socket fd; /* For Perl DBI/dbd */
unsigned long max_packet,max_packet_size;
My QUESTION :
Has anybody succeded to compile C++ VCL forms with the standard libmySQL.DLL
given with MySQL

I just need to connect to MySQL DB and do some queries, but I need the full
VCL environement...

give me website or tutorial example / help :-)

Thanks in advance.

Ciao





Jul 22 '05 #1
2 3603
On Fri, 6 Aug 2004 04:18:21 +0200, "Lotfi"
<llbaghli(nospam)@ifrance.com> wrote in comp.lang.c:

Hi

I am trying to access MySQL DB with C++ Builder 6 pro,
I have Apache 2 under W2000 pro and MySQL 4
You are asking your question in the wrong place. Neither comp.lang.c
nor comp.lang.c++ discuss third party libraries like MySQL nor
specific implementations like C++ Builder.

I found
http://crlab.com/mydac/
but it is not free :-(
but the trial version seems to work

I will also have a look to :
http://zeoslib.sourceforge.net/modul...name=Downloads

I need things simpler with no VCL
That's good, it is very hard to imaging anything more off-topic in
these newsgroups than Borland's VCL, which is not C or C++ at all but
written in their own proprietary extended version of Pascal.
SO I found an example of :
____________________________________________
Author: Jethro Wright, III TS : 3/ 4/1998 9:15 */
/* Date: 02/18/1998 */
/* mytest.c : do some testing of the libmySQL.DLL.... */
Presumably, given the name, this program was written in C.
/* */
/* History: */
/* 02/18/1998 jw3 also sprach zarathustra.... */
____________________________________________

it works under C++builder 6 pro in consoile mode and "C" syntax
....and according to you, it works as when compiled as C.
after rebuilding the .lib .def with implib impdef in order to link them with
his C source

but If I rename its file to .CPP
and rebuild it gives lot of errors (that where warnings before) because of
the use of :
char * pszT;
and mysql DLL functions are returning a const char *
Apparently you do not understand that C is not a subset of C++. There
are programs that are perfectly valid C that are not valid C++ at all.
There are several things you can do about this. You could make sure
you understand the differences between C and C++, and manually convert
the source to C++. Or you could look for another source, in C++. You
could write your own C++ code. Or you could buy C++ source code.
also when I include <VCL.h> file (in order to use VCL forms) then no
building is possible :-(
Anything at all involving Borland's VCL is completely off-topic here.
As I said, it is not even C or C++. This is discussed in Borland's
support groups, some of which even have .vcl in their names. Try the
news:borland.public.* family of groups on the server
newsgroups.borland.com.
mysql_com.h
gives errors near :

ypedef struct st_net {
Vio* vio;
unsigned char *buff,*buff_end,*write_pos,*read_pos;
----->>>> my_socket fd; /* For Perl DBI/dbd */
unsigned long max_packet,max_packet_size;
My QUESTION :
Has anybody succeded to compile C++ VCL forms with the standard libmySQL.DLL
given with MySQL

I just need to connect to MySQL DB and do some queries, but I need the full
VCL environement...

give me website or tutorial example / help :-)

Thanks in advance.

Ciao


None of your issues have anything to do with the C or C++ languages,
but with non-standard extensions and third party libraries. Your best
bet is the Borland support groups.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #2
>
None of your issues have anything to do with the C or C++ languages,
but with non-standard extensions and third party libraries. Your best
bet is the Borland support groups.

thanks for your polite answer

Jul 22 '05 #3

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

Similar topics

3
by: Anand K Rayudu | last post by:
Hi All, I am new to python & want to build some GUI dialogs. Can some one please suggest some document reference. I am hoping that standard python install will have some GUI development...
3
by: ANUJ | last post by:
hi all, i was wondering if i have a open code thing or some sample program to generate a GUI for writing a query in mysql and then convert it to the normal form for executing it. tried to google...
0
by: Justin Hanson | last post by:
Red Earth Technologies announces the release of version 1.5 of Superior SQL Builder, its SQL tool that allows users to build complete SQL scripts without typing any code. Superior SQL Builder...
5
by: W. D. | last post by:
Hi, I am having a great deal of trouble trying to get ZeosLib (6.1.5 stable) to work with Borland C++ Builder 6. Since there weren't any C++ examples in the base package...
2
by: Mike Turco | last post by:
I like using the expression builder for a lot of different things but it isn't always available when I want to use it, for example in the code window, or in all of the control properties. I am...
2
by: Lotfi | last post by:
Hi I am trying to access MySQL DB with C++ Builder 6 pro, I have Apache 2 under W2000 pro and MySQL 4 I found http://crlab.com/mydac/ but it is not free :-( but the trial version seems to...
2
by: Mike | last post by:
Hello NG, i am just learning various Design Patterns and now i am not sure, if this design is correct (Builder) or if i should use an other pattern. I have various classes (here ChildA and...
3
by: Sheldon Glickler | last post by:
Can someone direct me to the proper newsgroup please? I want to find a freeware/shareware web tool to build an SQL query to interrogate a mysql database on the server. I started to write one,...
0
donilourdu
by: donilourdu | last post by:
hi I want to know about the differnce between MySQL command and command builder. with regards doni
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.