Implementing the Client in C++(cont’d)
ifstream in(“Hello.ref”);
CORBA_Object_var obj = orb -> string_to_object(s);
Hello_var p = Hello::_narrow(obj);
p -> print(“Hello World!”);
Read “stringified” object reference
- Reads from a file
- Convert “stringified” reference into “real” object reference
“Narrow” to derived interface type