Advertisement

04.26.2007 at 07:46PM PDT, ID: 22537607
[x]
Attachment Details

wchar_t to string conversion problem, might be pointer problem

Asked by b3n_ in C++ Programming Language

Tags: , ,

Hello,

i have a pointer to a wchar_t value and want to copy that value into a string. i thought i could do it like this:

std::string s = (char*) pointer_to_wchar_t;

i figured out that i only have the first char in the string afterwards. i assumbe because i only move the pointer to the first char into the string. how can i get the entire value of the wchar_t into my string?

thank you.Start Free Trial
[+][-]04.26.2007 at 08:00PM PDT, ID: 18986574

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.26.2007 at 09:09PM PDT, ID: 18986749

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.26.2007 at 09:15PM PDT, ID: 18986765

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.26.2007 at 09:22PM PDT, ID: 18986792

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C++ Programming Language
Tags: string, wchar_t, conversion
Sign Up Now!
Solution Provided By: DeepuAbrahamK
Participating Experts: 3
Solution Grade: A
 
 
[+][-]04.29.2007 at 11:14PM PDT, ID: 18999759

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 01:11AM PDT, ID: 19000009

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 05:42AM PDT, ID: 19000882

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2007 at 05:52AM PDT, ID: 19000950

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.01.2007 at 11:46PM PDT, ID: 19013955

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2007 at 05:59PM PDT, ID: 19202492

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.17.2008 at 10:22AM PDT, ID: 21590120

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.17.2008 at 10:36AM PDT, ID: 21590163

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]05.24.2008 at 07:16PM PDT, ID: 21640969

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32