<![CDATA[FiveTech Software tech support forums]]> https://www.fivetechsoft.com/forums Fri, 09 May 2025 09:05:30 -0600 Smartfeed extension for phpBB https://www.fivetechsoft.com/forums/styles/prosilver/theme/images/site_logo.svg <![CDATA[FiveTech Software tech support forums]]> https://www.fivetechsoft.com/forums en-gb Fri, 09 May 2025 09:05:30 -0600 60 <![CDATA[FiveWin for Harbour/xHarbour :: Lets use these forums! :: Author Antonio Linares]]> https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40118&p=239206#p239206
Lets use these forums meanwhile we find a solution for https://forums.fivetechsupport.com/

many thanks!]]>
no_email@example.com (Antonio Linares) https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40118&p=239206#p239206 Thu, 08 May 2025 00:09:47 -0600 https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40118&p=239206#p239206
<![CDATA[FiveWin for Harbour/xHarbour :: Re: Lets use these forums! :: Reply by karinha]]> https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40118&p=239207#p239207
Regards, saludos.]]>
no_email@example.com (karinha) https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40118&p=239207#p239207 Thu, 08 May 2025 06:58:45 -0600 https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40118&p=239207#p239207
<![CDATA[FiveWin for Harbour/xHarbour :: AdoDb Connection :: Author damianodec]]> https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40119&p=239208#p239208 I use adodb connection for DB in cloud and often (trouble internet line) the connection go down for a few milliseconds
I check ocn:State and is Ok.
Mr.Rao suggests function IsCnActive().
before each FW_OpenRecordSet I check the connection by IsCnActive but nothing if the connection goes down I always get FW_ShowAdoError dialog.

Is there any safer way to check the connection or understand if it is actually active?

Thanks]]>
no_email@example.com (damianodec) https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40119&p=239208#p239208 Thu, 08 May 2025 08:42:42 -0600 https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40119&p=239208#p239208
<![CDATA[FiveWin for Harbour/xHarbour :: Re: AdoDb Connection :: Reply by Enrico Maria Giordano]]> https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40119&p=239209#p239209 no_email@example.com (Enrico Maria Giordano) https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40119&p=239209#p239209 Thu, 08 May 2025 09:14:35 -0600 https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40119&p=239209#p239209 <![CDATA[FiveWin for Harbour/xHarbour :: Re: AdoDb Connection :: Reply by karinha]]> https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40119&p=239210#p239210

Code: Select all

   IF .NOT. IsInternet()

      aGrad := { { 0.30, CLR_BLACK, CLR_BLACK },{ 0.50, CLR_BLACK, CLR_BLACK } }

      DEFINE CURSOR oHand RESOURCE "Dedo"
      DEFINE ICON oIco  NAME "ICONE05"
      DEFINE FONT oFnt  NAME "Ms Sans Serif" SIZE 0,  16 BOLD
      DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 0, -16 BOLD

      DEFINE DIALOG oDlg  RESOURCE "DLG_SEM_INTERNET" ICON oIco GRADIENT aGrad

      oDlg:lHelpIcon := .F.

      For IDCor = 401 To 405 // Os ID's dos TEXTOS na DIALOG.
         REDEFINE SAY ID IDCor OF oDlg COLORS CLR_WHITE, CLR_WHITE UPDATE FONT oFont TRANSPARENT
      Next IDCor

      REDEFINE BITMAP oBtnImg ID 120 RESOURCE "EXPLORER32" OF oDlg TRANSPARENT

      REDEFINE BUTTONBMP oSaida ID 301 OF oDlg RESOURCE "154" TEXTRIGHT    ;
         ACTION( oDlg:End() ) CANCEL

      oSaida:cTooltip := { "Saida - Exit - Cancelar", ;
                           "Saida - Exit - Cancelar", 1, CLR_WHITE, CLR_HBLUE }

      oSaida:oCursor := oHand

      SET FONT OF oSaida TO oFont

      ACTIVATE DIALOG oDlg CENTERED

      oFnt:End()
      oFont:End()

   ELSE

      SendEmailLog( cErrorLog )  // ENVIA O LOG DE ERRO DA NFE TODOS OS .LOG

   ENDIF



FUNCTION IsInternet()

   LOCAL cIp, cVret := .F.

   WsaStartUp()

   cIp := GETHOSTBYNAME( "microsoft.com" )
   cIp := GETHOSTBYNAME( "microsoft.com" )

   WsaCleanUp()

   // Seguranca caso o provedor da microsoft esteja fora do ar...
   IF ( cIp <= "0.0.0.0" )

      WsaStartUp()

      cIp := GetHostByName( "google.com" )
      cIp := GetHostByName( "google.com" )

      WsaCleanUp()

   ENDIF

RETURN( cIp<>"0.0.0.0" )

/* // DIALOG - use google translator.
DLG_SEM_INTERNET DIALOG 201, 97, 210, 90
STYLE DS_ABSALIGN | DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE
FONT 10, "MS Sans Serif"

{
 PUSHBUTTON "&Saida", 301, 80, 71, 50, 14
 CTEXT "PLENOWIN: Modem Desconectado.", 401, 5, 4, 200, 12, SS_CENTER | NOT WS_GROUP
 LTEXT "___________________________________________________________________", 402, -1, 16, 211, 10, NOT WS_GROUP
 CTEXT "Verifique Sua Conexão de Internet", 403, 5, 33, 200, 12, SS_CENTER | NOT WS_GROUP
 CTEXT "e Tente Novamente.", 404, 5, 45, 200, 12, SS_CENTER | NOT WS_GROUP
 CTEXT "( Error Code: 277 )", 405, 5, 57, 200, 12, SS_CENTER | NOT WS_GROUP
 CONTROL "TBitMap", 120, "TBitMap", WS_CHILD | WS_VISIBLE, 5, 70, 25, 20
}
*/
Regards, saludos.]]>
no_email@example.com (karinha) https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40119&p=239210#p239210 Thu, 08 May 2025 09:19:38 -0600 https://www.fivetechsoft.com/forums/viewtopic.php?f=3&t=40119&p=239210#p239210
<![CDATA[FiveWin para Harbour/xHarbour :: Re: Hora de migrar a https://forums.fivetechsoft.com/ :: Reply by checo176]]> https://www.fivetechsoft.com/forums/viewtopic.php?f=6&t=40115&p=239204#p239204 no_email@example.com (checo176) https://www.fivetechsoft.com/forums/viewtopic.php?f=6&t=40115&p=239204#p239204 Mon, 21 Apr 2025 11:52:11 -0600 https://www.fivetechsoft.com/forums/viewtopic.php?f=6&t=40115&p=239204#p239204 <![CDATA[FiveWin para Harbour/xHarbour :: Re: SLACK de Fivewin :: Reply by checo176]]> https://www.fivetechsoft.com/forums/viewtopic.php?f=6&t=35356&p=239205#p239205 no_email@example.com (checo176) https://www.fivetechsoft.com/forums/viewtopic.php?f=6&t=35356&p=239205#p239205 Mon, 21 Apr 2025 12:01:20 -0600 https://www.fivetechsoft.com/forums/viewtopic.php?f=6&t=35356&p=239205#p239205