tstring is just an alias for std::string if unicode is not defined.
Here it wants a reference to a std::string so just give a std::string
explicitly.
tstring DSN_str("removed");
DBConnection::GetDefaultConnection().Connect(DSN_str);
Thanks for using DTL,
Corwin
--- In DatabaseTemplateLibrary@yahoogroups.com, "pimiento333"
<apoc@...> wrote:
>
> Hi,
>
> I've got a problem I can't narrow down for days. In a small test
> project I can use dtl without any problems. Inside my current project
> I alwas get the following compiler error using vs 2003:
>
> 'const char[125]' to 'const dtl::tstring&' in in the line
> dtl::DBConnection::GetDefaultConnection().Connect("removed");
>
> Any ideas how to aproach this problem? Char encoding is set to nothing
> specific.
>
> Kins regards,
> Chris
>