[omniORB] String Handling

Swapnil Wale swapnil.wale at gitechnologies.com
Sat Mar 26 00:44:53 GMT 2005


Hi,
    I am new to CORBA. I need some help on how to pass strings from a client
to server. So far I used to pass strings from a c++ client by...

 CORBA::WStringValue_var msg =  new CORBA::WStringValue((const
CORBA::WChar*)L"My Message.....");

This works fine but now I need to pass some values that I get from a
database. How can I pass those values if I use a variable to store those
values? I looked at some examples but most of them are similar to the above
example.

If I have a string variable

A = "Hello World";

how can I send it to the server?

Thank you
-Swapnil-




More information about the omniORB-list mailing list