[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-plusplus
Subject:    Re: How to set up connection string
From:       Warren Young <mysqlpp () etr-usa ! com>
Date:       2008-01-28 10:39:20
Message-ID: 479DB0D8.7010109 () etr-usa ! com
[Download RAW message or body]

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.

-- 
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    http://lists.mysql.com/plusplus?unsub=mysql-plusplus@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic