By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,312 Members | 1,877 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,312 IT Pros & Developers. It's quick & easy.

How to convert std::wstring to const WCHAR*

P: 30
hi all
i want to convert wstrint to WCHAR* how to do that?
i am getting following error:

error C2664: 'UnicodeToUtf8' : cannot convert parameter 1 from 'std::wstring *__w64 ' to 'const WCHAR *'
May 11 '07 #1
Share this Question
Share on Google+
1 Reply


AdrianH
Expert 100+
P: 1,251
hi all
i want to convert wstrint to WCHAR* how to do that?
i am getting following error:

error C2664: 'UnicodeToUtf8' : cannot convert parameter 1 from 'std::wstring *__w64 ' to 'const WCHAR *'
Call its member function c_str().


Adrian
May 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.