How to write my prototype & allocate memory to my dynamic array.



I'm using Orbit-2.12.0 and I don't know where I have write my source code, how to write the prototype of my function (SearchPerson(...)) and how to allocate memory to my dynamic array (person=<alloc>(sizeof(PERSON)*10)).
 
ejemplo.idl:
interface ejemplo {
  typedef struct struct_person {
    long    id;
    char   name[32];
  } PERSON;
  typedef sequence<PERSON> PERSONS;
  void SearchPersons(in char name,out long qty,out PERSONS person);
};
 
Thank!


Ahora podés usar Yahoo! Messenger en tu Unifón, en cualquier momento y lugar.
Encontrá más información aquí.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]