Ver Mensaje Individual
  #6
Antiguo 9 de diciembre de 2018, 10:15
Galileo
Forero Junior
Última Actividad 22.01.2021 11:39
Posts Posts: 38
Likes enviados Enviados: 20
Likes recibidos Recibidos: 41

Sé que llego tarde para responder a esta pregunta, pero hacía mucho que no me pasaba por el foro. No obstante, si alguien tiene esta inquietud en el futuro, aquí está la solución.

La PowerCOBOL User's Guide indica claramente cómo hacerlo:

Notes About Using DLLs Developed in PowerCOBOL

Entry information must be specified to use DLL files in a
PowerCOBOL application. To specify all of the sheets that
include DLL files you can:

Specify entry information before executing the application.
Create a file called COBOL85.CBR in the directory containing the
application you want to execute. Specify these file contents:

[program-name. ENTRY.]
sheet-name = DLL-name


The components to be include in the COBOL85.CBR file are:

Program-name: To open the sheet from within COBOL85, specify
the COBOL85 program name. To open the sheet from within
PowerCOBOL, specify the starting sheet name.

Sheet-name: Specify the name of the sheet included in the DLL
file.

DLL name: Specify the name of the DLL containing the sheet you
want to open.

OR

Specify entry information upon execution of the application.
In the window that is displayed upon execution of the
application, perform the following actions:

· From the Section menu, select Entry Information.
· Specify the sheet to be opened from within the DLL file.

Use this format:

sheet-name = DLL-name

Where sheet-name specifies the name of the sheet included in
the DLL file and DLL name specifies the name of the DLL
containing the sheet you want to open.

Finally, save the specified contents in the COBOL85.CBR file.
Select the Save button in the Run-time Environment Setup
window.

For more information about the COBOL85.CBR file and the
Run-time Environment Setup window, refer to the “COBOL85
User’s Guide.”

Muestro a continuación un ejemplo que he probado.

[TESTRUTINA.ENTRY]
PASOALETRA=PASOALETRA.DLL
VENTANA2=PASOALETRA.DLL
VENTANA3=PASOALETRA.DLL


Dease el programa principal llamo a la ventana PASOALETRA (incluida en la DLL) o a VENTANA2. Y, desde esta última, a VENTANA3. Funciona perfectamente.

Un saludo, y siento el retraso.
Galileo is offline   Responder Con Cita