IiopSetWChar Function

Action

Associates a wide character parameter with a CORBA object. This function can be used to set parameters of a request in advance of calling the IiopRequest function.

Include file

IIOP.bdh

Syntax

IiopSetWChar(in hIiop : number,in nWChar : number,in nType : number optional): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
hIiop Handle to a CORBA object.
nWChar Wide character that will be associated with the CORBA object.
nType

Defines the byte order of the wide character (optional). Pass one of the following flags to the function:

  • IIOP_BYTE_ORIENTED (default)

  • IIOP_WIDE_LITTLE_ENDIAN

  • IIOP_WIDE_BIG_ENDIAN

Example

var
    nWChar: number;
  dcltrans
  transaction TMain
  const
    HOST := "192.168.20.21"; // server
    PORT := 1052; // port
    KEY := "...\h00"; // key
    KEYLEN := 4; // key length
  var
    hIiop: number; // handle to CORBA object
  begin
    IiopSetMaxGiopVersion("1.0");IiopSetByteOrder(IIOP_BIG_ENDIAN);

    // retrieve handle to server
    IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2",HOST, PORT, KEY, KEYLEN);

    // pass wide character parameter to request
    IiopSetWChar(hIiop, nWChar);

   // call operation "Print" with wide character parameter
    IiopRequest(hIiop, "Print");
    IiopObjectRelease(hIiop);
  end TMain;