Re: Unresolved symbols with mysqlclient in DEBUG mode using VC++ 2010 Express

2012-06-19 Thread Lars Nilsson
irectory, you'd more than likely want to link with the one in the debug directory, I think, to get useful stack traces into library code when debugging. Lars Nilsson -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Unresolved symbols with mysqlclient in DEBUG mode using VC++ 2010 Express

2012-06-19 Thread Lars Nilsson
File ) > > can you > 1) locate MSVCRT*.dll on your %PATH% > 2) dumpbin -exports MSVCRT*.dll The problem is at compile/link-time not run-time dll lookup, so he'll first need to make sure he can link. Once it links, I'd hazard a guess it'll run ok (assuming the program i

Re: Unresolved symbols with mysqlclient in DEBUG mode using VC++ 2010 Express

2012-06-19 Thread Lars Nilsson
so the symbols are resolved > correctly? The release mode works perfect and the application runs > fine in that way only... The missing functions should be provided by the Visual Studio debug runtime library. Are all source files in your own code compiled and program linked with one, and only one

Re: Connect to MySQL server from a c++ application

2012-06-07 Thread Lars Nilsson
appen to use pointers for some of these instead of putting them on the stack, the ball is back in my court again to make sure I don't lose track of something. This is my personal preference. YMMV. Lars Nilsson -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Connect to MySQL server from a c++ application

2012-06-07 Thread Lars Nilsson
On Thu, Jun 7, 2012 at 3:08 AM, Simon Walter wrote: > On 06/07/2012 12:29 PM, Lars Nilsson wrote: >> I've been happy using SQLAPI++ (http://www.sqlapi.com/) where I work. >> Commercial and not open source, but it's cross-platform and supports a >> dozen or so differ

Re: Connect to MySQL server from a c++ application

2012-06-06 Thread Lars Nilsson
con.Commit(); Simply replace SA_Oracle_Client with SA_MySQL_Client, etc, and you'll be working against MySQL. Only requirement is that the dll/so libraries for each database you want to connect to are installed properly. Lars Nilsson -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql

Re: Postal code searching

2012-04-24 Thread Lars Nilsson
tal sp where sp.code = substring(lp.code, 1, length(sp.code)); or, given a particular long postal code select sp.code from short_postal sp where sp.code = substring('W1U 8JE', 1, length(sp.code)) Indices won't be of too much help for the short_postal table, I imagine, for this kind