From: Warren Young Date: January 28 2008 10:39am Subject: Re: How to set up connection string List-Archive: http://lists.mysql.com/plusplus/7410 Message-Id: <479DB0D8.7010109@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Nils Woetzel wrote: > > this does not seem to be a problem with the mysql++ library but rather > with your project settings in visual studio. Quite possible. To the original poster: have you read the Windows Forms section of README.vc? (Or README-Visual-C++.txt, as it's known in the v3.0 test releases?) > Essentially, it seems that your project has "use multibyte libraries" > activated in the project settings, which means that you need to write > an 'L' in front of all string literals: > con.connect( L"transpass", L"192.168.1.55", L"allpurpose", .... This shouldn't be necessary. Look at MySQL++'s examples/vstudio/wforms/MainForm.h It always uses "narrow" characters with MySQL++, simply because the underlying MySQL C API only understands narrow characters. Alexander, study this example to see how it works. You should be able to modify it with your hard-coded server parameters and have it work. Study the differences in build settings, and you'll probably find something that causes the example to build but your program to fail.