2

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?

Manoj R
  • 3,197
  • 1
  • 21
  • 36

3 Answers3

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
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