12.07.2015 Views

VisiBroker Edition

VisiBroker Edition

VisiBroker Edition

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

用 户 违 例捕 捉 特 定 类 型 的 系 统 违 例您 可 以 专 门 选 择 捕 捉 您 所 期 望 的 每 种 类 型 的 违 例 , 而 不 必 捕 捉 所 有 类 型 的 违 例 。 以下 的 代 码 示 例 分 别 显 示 该 方 法 在 C++ 和 Java 下 的 应 用 。C++: ...int main(int argc, char* const* argv) {try {// 初 始 化 ORB。CORBA::ORB_ptr orb = CORBA::ORB_init(argc, argv);// 限 制 到 帐 户 。Account_var account = Account::_bind();// 取 得 帐 户 余 额 。CORBA::Float acct_balance = account->balance(); 1/19/01 Vijay says change toaccount->balance// 打 印 余 额 。cout

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

Saved successfully!

Ooh no, something went wrong!