12.07.2015 Views

VisiBroker Edition

VisiBroker Edition

VisiBroker Edition

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

用 正 确 的 方 针 创 建 myPOAPortableServer::POA_var myPOA = rootPOA->create_POA("bank_agent_poa",poa_manager,policies);// 创 建 服 务 对 象AccountManagerImpl managerServant;// 确 定 服 务 对 象 IDPortableServer::ObjectId_var managerId =PortableServer::string_to_ObjectId("BankManager");// 用 myPOA 上 的 ID 激 活 服 务 对 象myPOA->activate_object_with_id(managerId, &managerServant);// 激 活 POA 管 理 器poa_manager->activate();CORBA::Object_var reference =myPOA->servant_to_reference(&managerServant);cout nmake -fMakefile.cpp要 使 用 <strong>VisiBroker</strong> 属 性 装 载 方 法 来 编 译 C++ 实 例 , 只 需 执 行 以 下 命 令 :UNIX:$VBROKERDIR/examples/vbe/pi/client_server> make -f Makefile.cppdllWindows:%VBROKERDIR\examples\vbe\pi\client_server> nmake -fMakefile.cpp dll使 用 可 移 植 接 收 器 20-37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!