Otros temas que te pueden interesar
|
||||
| Tema | Autor | Foro | Respuestas | Último post |
| Una de las Hojas más útiles que he visto | Josber | Bases de datos | 4 | 26 de mayo de 2026 12:28 |
| [Sintaxis] Ayuda con libreria epson InterfaceEpsonNF.dll | drvedia1981 | PowerCOBOL (ActiveX, v4 - v11) | 3 | 1 de febrero de 2022 13:34 |
| [Componente] Generar txt con fecha del dia | LisAndKp | JCL y utilidades | 5 | 29 de junio de 2020 10:01 |
| [Sintaxis] Comunicarse con una DLL | Hrmcobol | PowerCOBOL (ActiveX, v4 - v11) | 1 | 30 de junio de 2016 20:58 |
| [Compilador] NetExpress 3.1 - DISPLAY en una DLL | Kuk | Micro Focus COBOL | 0 | 22 de mayo de 2015 21:06 |
![]() |
|
Forero Junior
![]()
|
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
![]()
|
jhjacomo, ¿cuál es la sintaxis que usas?
Debería ser: Código COBOL:
Tienes que mirar en las propiedades de cada SHEET cuál es su nombre. El *.win es el nombre físico del fichero donde el IDE guarda metadatos. 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 |
||||||||
|
|
|
|
Forero Junior
![]()
|
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: Código COBOL:
y me da el siguiente error y se cierra la aplicación, cuando el llamado lo hago de la siguiente manera: Código COBOL:
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, 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 |
||||||||
|
|
|
|
Forero 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. |
||||||||
|
|
|
![]() |
| Herramientas | |
|
|
| Archivo - Cobol Foro | Contactar con Nosotros - Cobol Foro | |||||||