ページの先頭行へ戻る
Interstage Application Server アプリケーション作成ガイド(コンポーネントトランザクションサービス編)

6.2.2 可変長データ領域獲得関数

(TD::string_alloc(unsigned long length)、TD::wstring_alloc(unsigned long length) )

lengthで指定された文字数+1の動的なString領域の獲得を行います。正常に領域が獲得できた場合は、獲得したデータのポインタを返します。異常終了した場合には、NULLポインタを返します。

(使用例)
CORBA::Char *str = TD::string_alloc(5); CORBA::WChar *wstr = TD::wstring_alloc(5);