Click here to Skip to main content
15,885,933 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
is it possible to convert to LPCWSTR using mbstowcs?
Posted

You should use mbstowcs
Like following way of prtotyping
size_t mbstowcs ( wchar_t * wcstr, const char * mbstr, size_t max );

this link may help you
Convert multibyte string to wide-character string[^]
 
Share this answer
 
Comments
Himansu sekhar bal 22-Apr-11 6:22am    
ok,fine answer.i give a vote for you
Nish Nishant 22-Apr-11 8:37am    
You gave him a 1? Surely he deserves a 5!
Nish Nishant 22-Apr-11 8:37am    
Voted 5 to compensate for the 1 vote!
Is it possible to convert to LPCWSTR using mbstowcs?

Yes.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900