Joachim Person wrote:
> error C2535: 'void user::set(const std::string &)' : member function already
> defined or declared MySQLCommunicator.cpp(10) : see declaration of
That's because there are some default constructors generated. The "1,
1" part of the sql_create invocation tells it you want a 1-argument
ctor, which conflicts with one of these defaults. You're going to have
to say "1, 0" instead, and give up on having a ctor that can fully
initialize the object.
This problem has been largely ignored because it goes away when you have
more realistic tables, with many columns.
> Also - How can I convert a CString into the std::string type?
bar = (const char*)foo;