Ver Mensaje Individual
  #11
Antiguo 20 de abril de 2017, 10:08
Kuk
Administrador
Última Actividad 19.09.2026 20:11
Posts Posts: 2.500
Likes enviados Enviados: 1037
Likes recibidos Recibidos: 1207

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
Archivos Adjuntos
Tipo de Archivo: zip DES.zip (24,4 KB)Descargas: 113



NORMAS DEL FORO - para garantizar el buen funcionamiento del Foro.
¿Te han ayudado? NO TE OLVIDES de darle a
¿Quieres dirigirte a alguien en tu post? Notifícale haciendo clic en su Nick
Kuk is offline   Responder Con Cita