
Conversion const char* -> const unsigned short*
Yes.
However, there are helper macros that may be of some use:
W2A, A2W
Note that you need to include a header (atlbase.h?) to use these.
Quote:
> Do I have to allocate memory for the LPCWSTR string first? I'm getting a
> crash in debug w/ in the functino call to mbstowcs.
> > mbstowcs()
> > > I have:
> > > LPCWSTR myString;
> > > I have a function that returns a const char*.
> > > How can I do:
> > > myString = MyFunc();