Perl Package (CORBA) 
Author Message
 Perl Package (CORBA)

Hi,

I am trying to use some IDL auto generated code.

1. It creates a package -

package xx::List;
CORBA::TypeCode::_new_type_impl('xx::List', CORBA::TypeCode::_create_alias
_tc('IDL:xx/List:1.0', 'List', $xx::AttrList::_tc));

code for getDefaultAttrs is -

2. It also creates a sub -

sub getDefaultAttrs ($$) {

    my $result_ = { _type => $CORBA::_tc_void };
    my $request_ = $self->create_request(
        'operation' => 'getDefaultAttrs',
        'arg_list'  => [
          { 'argument'  =>
            { _type  => $xx::List::_tc, _value => $avList },
            'arg_modes' => 1,
          },
        ],
        'result' => $result_
    );
    $request_->invoke(0);

Quote:
}

3. When I try to use it like

my %attrs = {};
$reference->getDefaultAttrs(\%attrs);

It doesn't like it!

4. getDefaultAttrs expects a xx::List type as it parameter? If so how do I
create one? my $temp = xx::List; or my $temp = new xx::List; gets compile
time error!

5.      Do I have to do "bless" somewhere so that I can use the xx::List?

Thanks for your help.

Siv

 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://www.*-*-*.com/ ,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts



Tue, 19 Aug 2003 13:59:11 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. TDBLookupCombobox event ?

2. Paradox ?????

3. Help with a keyreader

4. Refresh Record following update

5. Alter dBase table

6. Help

7. Querying the results of a query

8. Index error- table types

9. Problem with Delphi & MS-SQL when using Windows NT 3.51 as the server

10. CORBA Perl mapping?

11. Perl CORBA IIOP module?

12. CORBA Perl mapping?

 

 
Powered by phpBB® Forum Software