A
alex
i have the following line in my console app:
_bstr_t strCnn("my database connection string");
with the database connection string hard coded as above, it works, i connect
to my db.
when i read the db connection string into a string variable from the console
and try to use it or something i converted it into as the argument to strCnn
I can't connect. Any help would be appreciated.
ps
I know _bstr_t is not part of standard C++, it's a C++ class from microsoft.
there's info on _bstr_t all over the web but i still can't get my code to
work so i'm posting here.
_bstr_t strCnn("my database connection string");
with the database connection string hard coded as above, it works, i connect
to my db.
when i read the db connection string into a string variable from the console
and try to use it or something i converted it into as the argument to strCnn
I can't connect. Any help would be appreciated.
ps
I know _bstr_t is not part of standard C++, it's a C++ class from microsoft.
there's info on _bstr_t all over the web but i still can't get my code to
work so i'm posting here.