I use MySQL with windows, and I use ADO to do this.

Have a search for some ADO tutorials with C++