Cobol Foro

Cobol Foro (https://www.cobolforo.es/index.php)
-   PowerCOBOL (ActiveX, v4 - v11) (https://www.cobolforo.es/forumdisplay.php?f=9)
-   -   [Duda] Como insertar un programa C en POWER COBOL 9 (https://www.cobolforo.es/showthread.php?t=605)

Kuk 20 de abril de 2017 10:08

1 Archivos Adjunto(s)
FabioYeyo, toma te he creado la DLL para Windows.

Para poder llamarla desde PowerCOBOL tienes hacer como se dice aquí: [Aporte] CALL de cualquier DLL sin *.LIB ni "LoadLibrary" - COBOL Foro

La sintaxis de llamada a esta función será:

Código COBOL:
  1.  WORKING-STORAGE SECTION.
  2.  01  WS-FunctA      PIC X(250).
  3.  01  WS-Format      PIC X(250).
  4.  01  WS-PlainText   PIC X(250).
  5.  01  WS-Key         PIC X(250).
  6.  01  WS-CipherText  PIC X(250).
  7.  01  RESP           PIC S9(9) COMP-5.
  8.  
  9.  01  DES            PIC X(3) VALUE "DES".
  10.  PROCEDURE DIVISION.
  11.      
  12.      CALL DES WITH STDCALL USING WS-FunctA
  13.                                  WS-Format
  14.                                  WS-PlainText
  15.                                  WS-Key
  16.                                  WS-CipherText
  17.                            RETURNING RESP


La franja horaria es GMT +2. Ahora son las 16:24.

Powered by: vBulletin, Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.