1.3.3.1 STRING型バッファの使用

Tuxedo .NETワークステーション・クライアントでは、クラスTypedStringを使用して、STRING型バッファの文字を定義します。TypedStringのインスタンスは、tpcall()などのAppContextのメソッドとの通信に直接使用できます。次のコード・スニペットは、TypedStringクラスの使用を示しています(C#コードの例)。

……

TypedString snd_str = new TypedString ("Hello World");

TypedString rcv_str = new TypedString(1000);

AppContext ctx = AppContext.tpinit(null);

……

ctx.tpcall("TOUPPER", snd_str, rcv_str, 0);

……

ctx.tpterm();

……