Quizás te sirva esta tabla de mapeo de tipo de datos de C a RPG

Mapeo de tipos de datos C /
RPGLE<http://bloc.corretge.cat/2009/03/mapeig-de-tipus-de-dades-c-rpgle.html>
Tabla
extraida de http://www.opensource400.org/callc.html  (ayer no funcionaba)


             C              |                RPG
    ------------------------+-----------------------------------
      int x                 |   D   x           10I 0   VALUE
      long x                |   D   x           10I 0   VALUE
      long long x           |   D   x           20I 0   VALUE
      unsigned int x        |   D   x           10U 0   VALUE
      unsigned long x       |   D   x           10U 0   VALUE
      unsigned long long x  |   D   x           20U 0   VALUE
      double x              |   D   x            8F     VALUE
                            |
      short *x              |   D   x            5I 0
      int *x                |   D   x           10I 0
      long *x               |   D   x           10I 0
      long long *x          |   D   x           20I 0
      unsigned short *x     |   D   x            5U 0
      unsigned int *x       |   D   x           10U 0
      unsigned long *x      |   D   x           10U 0
      unsigned long long *x |   D   x           20U 0
      float *x              |   D   x            4F
      double *x             |   D   x            8F



             C              |                RPG
    ------------------------+------------------------------------------
      struct SSS s          |   D   s                   VALUE LIKE(SSS)
      struct SSS *s         |   D   s                   LIKE(SSS)
      TTT t                 |   D   t                   VALUE LIKE(TTT)
      TTT *t                |   D   t                   LIKE(TTT)
      char *s               |   D   s             *     VALUE OPTIONS(*STRING)
                            |OR D   s            nA
      void *p               |   D   p             *     VALUE
                            |OR D   s                   LIKE(SSS)
      wchar_t a             |   D   a            1C     VALUE
      wchar_t a             |OR D   a            1G     VALUE
      wchar_t *a            |   D   a            nC
      wchar_t *a            |OR D   a            nG



Atentament / Kind Regards

Àlex Corretgé
Serveis Informàtics Corretgé.com SLU
http://corretge.cat/

LinkedIn: http://www.linkedin.com/in/corretge


2009/3/3 Àlex Corretgé <[email protected]>

> Hola, en principio en ILE es indiferente en que lenguaje esté programado el
> módulo destino.
>
> mirate la instrucción EXTPROC *CWIDEN
>
> los tipos de datos de los parámetros son compatibles en ambos lenguajes?
>
> Atentament / Kind Regards
>
> Àlex Corretgé
> Serveis Informàtics Corretgé.com SLU
> http://corretge.cat/
>
> LinkedIn: http://www.linkedin.com/in/corretge
>
>
> 2009/3/3 Jaime Villa Torres <[email protected]>
>
>>  Tengo la necesidad de llamar un C++ desde un rpg, necesito enviarle un
>> parametro y recibir otro, pero no he podido, si alguien tiene un ejemplo,
>> por favor.
>>
>> La idea es enviar el parametro a C++, el realiza una conexión, y debe
>> retornar un valor.
>>
>>
>> Gracias.
>>
>>
>> __________________________________________________
>> Forum.HELP400 es un servicio m&amp;#225;s de ServerNEWS.
>> &amp;#169; Publicaciones Help400, S.L. - Todos los derechos reservados
>> http://www.help400.es
>> _____________________________________________________
>>
>> Para darte de baja visita la siguente URL:
>> http://listas.combios.es/mailman/listinfo/forum.help400
>>
>
>
__________________________________________________
Forum.HELP400 es un servicio m&amp;#225;s de ServerNEWS.
&amp;#169; Publicaciones Help400, S.L. - Todos los derechos reservados
http://www.help400.es
_____________________________________________________

Para darte de baja visita la siguente URL:
http://listas.combios.es/mailman/listinfo/forum.help400

Responder a