I tried to connect C++ to MySql and I just can\'t get this to work properly. I used latest MySql and C++/Connector for Windows from Oracle site. I also use VS2010.
Are you sure task-column doesn't have the binary collation set? If so, the connector may return different metadata for the same column.
Update:
Also, check that the Connector has been compiled with the same runtime as your project. If using VS, I bet the other one was compiled with /MT and the other with /MD. This way, they use different heaps and it won't work.