string conversion problems
From: alex (alex.smotritsky_at_verizon.net)
Date: 05/30/04
- Next message: Ben: "Re: assigning string to int"
- Previous message: Phlip: "Re: string conversion"
- Next in thread: Gregg: "Re: string conversion problems"
- Reply: Gregg: "Re: string conversion problems"
- Reply: John Ericson: "Re: string conversion problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 29 May 2004 22:56:16 -0400
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.
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 =---
- Next message: Ben: "Re: assigning string to int"
- Previous message: Phlip: "Re: string conversion"
- Next in thread: Gregg: "Re: string conversion problems"
- Reply: Gregg: "Re: string conversion problems"
- Reply: John Ericson: "Re: string conversion problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|