|
-
Apr 2nd, 2002, 02:44 PM
#1
Thread Starter
Fanatic Member
String Conversion? Should be simple.
Hi.
I'm trying to populate a BSTR variable with a value from an edit control on a form that I have created a variable for (m_Edit). m_Edit is a CString object, but I keep getting a conversion error.
Does anyone know how to do this?
Also, a web reference for data type conversations in Visual C++ would be handy also.
Thanks in advance.
-
Apr 3rd, 2002, 06:54 AM
#2
BSTR str = m_Text.AlllocSysString(); ???
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Apr 4th, 2002, 08:52 AM
#3
Thread Starter
Fanatic Member
Thanks CornedBee!
That's just what I was looking for. Your example did the trick!
Thanks, again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|