Searched for this everywhere and finally came here. I have a CORBA::WString_var as input parameter to my function. How do I know if it's empty?
Asked
Active
Viewed 791 times
3 Answers
2
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.

Community
- 1
- 1

Brian Neal
- 31,821
- 7
- 55
- 59
0
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.

mkaes
- 13,781
- 10
- 52
- 72
-
You can't pass null strings across an IDL interface. – Brian Neal Mar 22 '11 at 12:57
0
Use variable.in() to get the pointer to the CORBA::WChar array, than you can check that

Johnny Willemsen
- 2,942
- 1
- 14
- 16