开发者

how to check if corba::WString is empty?

Searched for this everywhere and fin开发者_StackOverflow中文版ally came here. I have a CORBA::WString_var as input parameter to my function. How do I know if it's empty?


I think you need to consult your ORB vendor's documentation. If your ORB maps CORBA::WChar to std::wchar_t, then you can use the techniques in this answer.


It is a long time ago. But if I remember correctly you can cast the WString_var to a WCHAR* and check this for NULL.


Use variable.in() to get the pointer to the CORBA::WChar array, than you can check that

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜