Getting WString in C++

2 posts / 0 new
Last post
Offline
Last seen: 1 year 9 months ago
Joined: 04/14/2022
Posts: 8
Getting WString in C++

Hello,

FString NewValue = MyData.value<std::string>(TCHAR_TO_UTF8(*PropName)).c_str();

What would be the equivalent for a wstring of this line ?
I tried std::wstring but I get an unreadable error on complation.

 

Howard's picture
Offline
Last seen: 17 hours 59 min ago
Joined: 11/29/2012
Posts: 565

So, I assume ahat "MyData" is a datatype defined in IDL for use by DDS?

If so, what is the IDL definition of "MyData"?

Do you change the IDL definition (and regenerate the type plugin) when you changed to use wstring?