0

![]() |
![]() |
Acabo de llegar... |
Estoy generando una dll (A.DLL) con los formularios a.win, b.win y c.win y desde el formulario a.win llamo al formulario b.win o c.win, y no encuentro la forma de hacerlo.
Alguna ayuda.
Gracias.
![]() |
![]() |
Administrador |
¿Te han ayudado? NO TE OLVIDES de darle al botón
¿Quieres dirigirte a alguien en tu post? Notifícale con una mención, tienes 2 opciones:
- Haciendo clic en el icono
al lado de su nick
- Haciendo clic en el botón
en el editor y escribiendo su nick.
![]() |
![]() |
Acabo de llegar... |
Gracias Kuk por tu respuesta, yo para no complicarme con esto de los nombres, uso el mismo en ambos lugares, el formulario a.win, en las propiedades le doy el mismo nombre "a".
Yo pensaba que esto era una limitación de las DLL's ,pero creo estoy cometiendo un error en alguna parte. El llamado lo efectuó desde una opción del control MenuBar del formulario principal de la dll.
El llamado lo efectuo de la siguiente manera:COBOL Código:
CALL OPENSHEET OF ABMFACTUCPR USING "abmfactucpr.DLL" "PARSTK".
y me da el siguiente error y se cierra la aplicación, cuando el llamado lo hago de la siguiente manera:COBOL Código:
CALL OPENSHEET OF ABMFACTUCPR USING "PARSTK"
Solo me dice "SHEET PARSTK not found." y continua la ejecución de la aplicación.
![]() |
![]() |
Administrador |
A ver si alguien que conoce más el Power 3 nos echa una mano:
@Eslopes, @Galileo, @Adrianeloy,
¿Te han ayudado? NO TE OLVIDES de darle al botón
¿Quieres dirigirte a alguien en tu post? Notifícale con una mención, tienes 2 opciones:
- Haciendo clic en el icono
al lado de su nick
- Haciendo clic en el botón
en el editor y escribiendo su nick.
![]() |
![]() |
Acabo de llegar... |
Alguna ayuda sobre esta consulta?.
Gracias
Julio Jacomo
![]() |
![]() |
Junior |
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.
Actualmente hay 1 usuarios viendo este tema. (0 miembros y 1 visitantes)
Marcadores