A
alex
i'm writing a console app using unmanaged c++ that uses cout/cin to request
a few database connection strings and read them into some string variables.
The problem is: after the frist db connection string is entered, the next
set of cout/cin statements is run thru without giving the user a chance to
input the second db connection string the app requires. I think this is
happening because the database connection strings i'm using have semi-colons
( in them (name-value pairs separated by semicolons). If I put in simple
strings like adsfkadsf asdflkjads, the io works as expected. I'm pretty sure
the problem is the semi-colons but don't know what to do about it. There are
also equal signs (=) and single quotes (') in the db connection strings.
Anybody know anything about this?
a few database connection strings and read them into some string variables.
The problem is: after the frist db connection string is entered, the next
set of cout/cin statements is run thru without giving the user a chance to
input the second db connection string the app requires. I think this is
happening because the database connection strings i'm using have semi-colons
( in them (name-value pairs separated by semicolons). If I put in simple
strings like adsfkadsf asdflkjads, the io works as expected. I'm pretty sure
the problem is the semi-colons but don't know what to do about it. There are
also equal signs (=) and single quotes (') in the db connection strings.
Anybody know anything about this?