Click here to Skip to main content
15,938,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to use the output of the api getprivateprofilestring in the CLR interface which takes String^.
The output of getprivateprofilestring am storing in TCHAR*.
Any possible conversion. I have got the conversion from string to String^.
So any pointer so that TCHAR* can be converted to string.

Really stuck in this.

Any help will be a bonus.
Posted

1 solution

You can create a std::string or std::wstring from a TCHAR* so the rest should be easy.
 
Share this answer
 
Comments
Okuma.Scott 1-Oct-14 16:45pm    
And how do you do that?
Richard MacCutchan 2-Oct-14 3:05am    
You start by reading the documentation for std::string, in particular constructors and operator=

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