🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18191

char array passing from Server to Client.

#18191
From: John Rizzuto
Date: Mon, 27 Jul 1998 00:00
41 lines
1647 bytes
Hi.

I am  new to the CORBA and Java.  I am having problems passing data
within a char array that I have defined within my IDL.  Here is the IDL.

// Account.idl

interface Account {
        float balance();
};
typedef char Q_R[80];
interface Q_Feed {

  long Connect(in char chType );
  void Retrieve_Data(in long iCHandle, in string szSym);
  boolean DataAvail(in long iCHandle);
  void Get_Field(in long iConnID, out Q_R pchResult, in char
uchField_Code);
  void ReleaseConnection(in long iCHandle);
};

This is the same IDL that was used to create  the C++ code on the Server
side.  On the Client side, in Java I am trying to retrieve data from the
Get_Field function by using the Q_RHolder class.  I have the following
line within my java code.

quote.Get_Field(q_handle, field_results.value, field_code);

where field_results is defined as:
Q_RHolder field_results = new Q_RHolder();
Q_Feed quote;

This returns the following error:
Can't convert char[] to Q_RHolder.
Am I suppose to use the _read member functions within Q_RHolder, and if
so how?

Thanks,

John Rizzuto
jrizzut@rbcds.com
Technical Details
Message-ID: <35BC9717.4CE3C2CE@outer-net.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d926f0d7d8192ced,start
X-Google-Attributes: gidf74b3,public
From: John Rizzuto <rizzutoj@outer-net.com>
Subject: char array passing from Server to Client.
Date: 1998/07/27
Message-ID: <35BC9717.4CE3C2CE@outer-net.com>
X-Deja-AN: 375321718
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language