alex_merlin_1985 wrote:
> I have a question: how can i make a connection with VC++ 9.0 EE to a
> mysql database which is not located on the machine where the
> application runs, but on an external server? i can do this in php, but
> not in c++...
> please give me some tips about this, tutorials, examples, sites...
>   

Here is a good place to start:
http://dev.mysql.com/doc/refman/5.0/en/apis.html

Specifically, this page describes the C API for connecting:
http://dev.mysql.com/doc/refman/5.0/en/mysql-real-connect.html

The C++ API requires a license to view, so I cannot link to that. 
Anyway, if you look at the function signature, you will notice a 
parameter for the hostname. This is where you put the computer's IP 
address. I am sure the C++ interface has something similar.

-- 
John Gaughan

Reply via email to