Clarifying char* and char[x]..

Started by
10 comments, last by sipickles 18 years, 5 months ago
Quote:Original post by sipickles
There must be some way of doing this conversion:

WCHAR* g_IP = (CDXUTEditBox*)pControl )->GetText(); //GetText() outputs a LPCWSTR

The answer is:
    LPCWSTR g_IP = ( (CDXUTEditBox*)pControl )->GetText(); 
but the real question is why do you need to convert and what are you trying to convert to?
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
Advertisement
std:wstring works a treat! Sorry that didnt occur to me!

You guys blow me away! Thanks for your patience in the face of such adversity!!

Cheers

Simon

This topic is closed to new replies.

Advertisement