console io

From: alex (alex.smotritsky_at_verizon.net)
Date: 05/29/04


Date: Fri, 28 May 2004 21:47:32 -0400

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?

 Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
                http://www.usenet.com

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---



Relevant Pages

  • Re: console io
    ... > a few database connection strings and read them into some string ... > the problem is the semi-colons but don't know what to do about it. ... That is the usual reason for ...
    (comp.lang.cpp)
  • Re: console io
    ... >> a few database connection strings and read them into some string ... That is the usual reason for ...
    (comp.lang.cpp)
  • Changing connection strings in the database functoids
    ... How is it possible to change the database connection strings outside of the ... map if I am using the database functoids? ... As I promote the map through our different enviornments, ...
    (microsoft.public.biztalk.general)
  • Re: Changing connection strings in the database functoids
    ... > How is it possible to change the database connection strings outside of ... > the map if I am using the database functoids? ... > As I promote the map through our different enviornments, ...
    (microsoft.public.biztalk.general)