Ver Mensaje Individual
  #3
Antiguo 7 de noviembre de 2015, 02:03
Alrolo
Guest
Última Actividad 01.01.1970 01:00
Posts Posts: n/a

yo realizo lo siguiente:

Código COBOL:
  1.  ENVIRONMENT     DIVISION.
  2.  DATA            DIVISION.
  3.  WORKING-STORAGE SECTION.
  4. *Usa WININET.LIB
  5. *recuerda usar ALPHAL(WORD)
  6.  
  7.  
  8.  01 WInternet_St  pic s9(9) comp-5.
  9.  01 whttp         pic x(21) value "http://www.google.com".
  10.  
  11.  PROCEDURE       DIVISION.
  12.      call "InternetCheckConnectionA" with stdcall linkage using
  13.                  by reference whttp *>
  14.                  by value 1
  15.                  by value 0
  16.       returning WInternet_St  *>
  17.       if WInternet_St equal to zero
  18.                 INVOKE POW-SELF "Alarm"   USING    POW-MBEXCLAMATION
  19.                 move "No existe conexion a internet" to "Caption" of LabMsg
  20.       end-if
  21.       exit program.

Última edición por Josber fecha: 7 de noviembre de 2015 a las 09:24. Razón: Etiqueta COBOL para el código
  Responder Con Cita