Hi Prashanth,
 I'm happy to help u. i attached one 'C' code in the
previous mail. just use that code for in vc++. Follow
the procedure,
 1.Create the new "win32 Console App." as a empty
project and add the attached 'C' file to the project.
 2.goto "Tools->options->Directories(tab)" and in that
add the corresponding MySQL Include path and as well
as the lib->debug path.
 3.goto "Project->settings->Link(tab)->General
Category->add the name 'libmysql.lib' in lib modules"
 4.Save the project.
 5.Add the MySQL lib->debug path to the environment
path variable, which is found in
ctrl-panel->system->Advanced->env.var->path (for the
dynamic linking of libmysql.dll file).
 6.Restart the system (for effect of env path var).
 7.Run the project.

 This c pgm will create one database called "user" and
table named "useracc" under the db "user".

Note:
 Don't forget to change the username and password vars
in the pgm if u set anything like that for ur MySQL.

 For further info on C-MySQL read the following page,
some sample chapters are there, that will be useful.
 
http://www.quepublishing.com/articles/article.asp?p=30494&seqNum=2&rl=1

 If u have any doubts means, send that to the group,
rather than sending to the seperate person and so that
reply will be useful for others also.

Thanks and Regards,
 Ashok.



--- "Prashanth H. Baragur"
<[EMAIL PROTECTED]> wrote:

> Ashok,
> 
> Can u do me a favor.
> Am trying to update the mysql server in windows
> using VC++ and C code. 
> Am very new to this domain. Can u please send the
> code u are using in
> VC++ to me?
> 
> Your help would be greatly appreciate.
> Thanks
> prashanth
> 
> -----Original Message-----
> From: Ashok Kumar [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 30, 2005 3:34 PM
> To: mysql mysql
> Subject: Help needed regarding MySQL-C Libraries on
> Linux....
> 
> Dear Friends,
>  I'm Ashok here. first i'll tell my sys
> configuration.
> 1.Redhat-Linux 9
> 2.Intel Pentium chipset
> 3.MySQL 4.1 with Development Libraries
> 
>  For this i've downloaded the MySQL4.1 under the
> specification "Linux x86 RPM downloads" from the
> site.
> 
>  In my system, the MySQL Server is working well. I
> tried to run the C program that will make the
> connection to the MySQL database and create the user
> database and useracc table.
>  It's finely working with Windows-VC++. But when i'm
> trying to run with Linux gcc, I'm getting lots of
> errors. I don't know what's the problem. I've
> attached
> the C-Pgm and the Error info.
> 
>  Pls, help me regarding this.
> 
> Thanks and Regards,
>  Ashok.
> 
> 
>               
> ____________________________________________________
> 
> Yahoo! Sports 
> Rekindle the Rivalries. Sign up for Fantasy Football
> 
> http://football.fantasysports.yahoo.com
> 



                
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to