my_s[0].s_mem = CORBA::string_dup("World"); // Transfers ownership
my_s[0].l_mem = 5;
}
注:请自行添加相关头文件。
参考:
1. Michi Henning, Steve Vinoski. Advanced CORBA Programming with C++. Addison-Wesley, 1999.
2. OMG. C++ Language Mapping, v1.1. http://www.omg.org/cgi-bin/apps/doc?formal/03-06-03.pdf
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=726332
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/