FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour New FWH 11.11
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FWH 11.11
Posted: Thu Nov 24, 2011 07:39 PM
Rimantas,

The problem comes from BTNBMP controls when using NOBORDER clause, as they don't get WS_TABSTOP style.

The solution is to modify Class TBtnBmp this way:
Code (fw): Select all Collapse
   ::nStyle    = nOR( WS_CHILD, WS_VISIBLE,; // WS_CLIPSIBLINGS
                      If( lBorder, If( l2007, 0, WS_BORDER ), 0 ),;
                      If( lBorder .and. ;
                      ! Upper( oWnd:ClassName() ) $ "TBAR;TOUTLOOK;TXBROWSE", WS_TABSTOP, 0 ),;
                      If( ( ! lBorder ) .and. oWnd:IsKindOf( "TDIALOG" ), WS_TABSTOP, 0 ) )

After that change, this example (which is similar like yours but simpler) is working fine :-)

rimantas.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oDlg, cPassw := Space( 10 )

   DEFINE DIALOG oDlg TITLE "Rimanta's Test" ;
      SIZE 400, 200

   @ 1, 2 SAY "User:"

   @ 1, 5 GET cPassw PASSWORD

   @ 50, 40 BTNBMP PROMPT "Ok" SIZE 40, 15 NOBORDER ACTION oDlg:End()

   @ 50, 110 BTNBMP PROMPT "Cancel" SIZE 40, 15 NOBORDER ACTION oDlg:End()

   ACTIVATE DIALOG oDlg CENTERED

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: New FWH 11.11
Posted: Thu Nov 24, 2011 07:54 PM
Antonio Linares wrote:Rimantas,

The problem comes from BTNBMP controls when using NOBORDER clause, as they don't get WS_TABSTOP style.

The solution is to modify Class TBtnBmp this way:
Code (fw): Select all Collapse
   ::nStyle    = nOR( WS_CHILD, WS_VISIBLE,; // WS_CLIPSIBLINGS
                      If( lBorder, If( l2007, 0, WS_BORDER ), 0 ),;
                      If( lBorder .and. ;
                      ! Upper( oWnd:ClassName() ) $ "TBAR;TOUTLOOK;TXBROWSE", WS_TABSTOP, 0 ),;
                      If( ( ! lBorder ) .and. oWnd:IsKindOf( "TDIALOG" ), WS_TABSTOP, 0 ) )

After that change, this example (which is similar like yours but simpler) is working fine :-)



Antonio ,

OK , I did change in btnbmp.prg and added prg to project . Now it's working . But I hope to get true fwh libs with changes . 11.11 is the last month to me . What about that ?
Rimantas U.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FWH 11.11
Posted: Thu Nov 24, 2011 07:58 PM

Rimantas,

We published FWH 11.11 today. Lets see if there are some more fixes to apply and then we will publish it again in a day or two :-)

In the meantime, your code is working fine :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FWH 11.11
Posted: Thu Nov 24, 2011 08:22 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FWH 11.11
Posted: Thu Nov 24, 2011 08:35 PM
Used xbp file:

test.exe.xbp
Code (fw): Select all Collapse
CINI = 
C_OUTPUTFOLDER = 
DEFFILE = 
INCLUDEFOLDERS = 
LAUTORUN = 
LDEBUG = .F.
LGUI = .T.
LIBFOLDERS = 
LMT = .F.
LNOAUTOFWH = .F.
LPRG_CLASSICDEBUG = .F.
LPRG_DEBUG = .F.
LUSEDLL = .F.
MAPFILE = 
MYC_FLAGS = 
MYDEFINES = 
MYLINK_FLAGS = 
MYPRG_FLAGS = 
MYRC_FLAGS = 
MYSLY_FLAGS = 
OUTPUTFOLDER = 
PRG_OUTPUTFOLDER = 
RC_OUTPUTFOLDER = 
RUNARGUMENTS = 
SLY_OUTPUTFOLDER = 
STARTIN = 
TARGETFOLDER = 

[test.prg]
MYC_FLAGS = 
MYDEFINES = 
MYPRG_FLAGS = 

[mem32.lib]

[send32.lib]

[LIBCMT.LIB]

[libcpmt.lib]

[png.lib]
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: New FWH 11.11
Posted: Thu Nov 24, 2011 10:08 PM
Antonio,

I tried out your suggestion. Unfortunately, the error "couldn't build" persists.

This is my PRG-file :
Code (fw): Select all Collapse
******************************************************************************
*                                                                            *
*   Program : IPADRES.PRG                                                    *
*   Author  : DRIESSEN Michel                                                *
*   Date    : 24/11/2011 - Ipadres - xHarbour                                *
*                                                                            *
*   Goal    : Looking for internal en external IP-address                    *
*                                                                            *
******************************************************************************
#INCLUDE "FIVEWIN.CH"
#DEFINE DEFAULT(xVar,xVal) xVar=IF(xVar=NIL,xVal,xVar)
******************************************************************************

FUNCTION IP_ADRES(nSec)

   LOCAL oHttp

   LOCAL cVar1     := ""
   LOCAL cVar2     := ""
   LOCAL cSec      := 0

   LOCAL cIPADRES1 := "www.dnsstuff.com/docs/ipall"
   LOCAL cIPADRES2 := "Your IP Address: <strong>"
   LOCAL cIPADRES3 := "</strong>"

   DEFAULT(nSec,"0")

   cSec := VAL(nSec)

   WsaStartUp()
   cVar1 := GetHostByName(GetHostName())
   WsaCleanUp()

   oHttp := CreateObject("winhttp.winhttprequest.5.1")
   oHttp:Open("GET","http://"+ALLTRIM(cIPADRES1),.f.)
   oHttp:Send()
   cVar2 := oHttp:ResponseText()
   cVar2 := StrExtract(cVar2,ALLTRIM(cIPADRES2),ALLTRIM(cIPADRES3))

   IF cSec = 0
      MsgAlert(IF(!EMPTY(cVar1),"Your current internal IP-address is : "+ALLTRIM(cVar1)+IF(!EMPTY(cVAR2),CHR(13)+CHR(13),""),"") + IF(!EMPTY(cVar2),"Your current external IP-address is : "+ALLTRIM(cVar2),""),"Take care")
   ELSE
      MsgWait(IF(!EMPTY(cVar1),"Your current internal IP-address is : "+ALLTRIM(cVar1)+IF(!EMPTY(cVAR2),"       -       ",""),"") + IF(!EMPTY(cVar2),"Your current external IP-address is : "+ALLTRIM(cVar2),""),"Take care",cSec)
   ENDIF

   QUIT

RETURN(.T.)

******************************************************************************

STATIC FUNCTION StrExtract(cText,cAfter,cBefore)

   LOCAL cRet := SUBSTR(cText,AT(cAfter,cText) + LEN(cAfter))
   LOCAL n

   IF (n := AT(cBefore,cRet)) > 0
      cRet := LEFT(cRet,n - 1)
   ENDIF

RETURN(cRet)

******************************************************************************

FUNCTION OleInvoke(hObj,cMethod,uParam)

#IFNDEF __XHARBOUR__
   RETURN __ObjSendMsg(TOleAuto():New(hObj),cMethod,uParam)
#ELSE
   LOCAL aParams := hb_aParams()
   aParams[1] := TOleAuto():New(hObj)
   RETURN hb_execFromArray(@__ObjSendMsg(),aParams)
#ENDIF

******************************************************************************

FUNCTION OleSetProperty(hObj,cPropName,uValue)

RETURN __ObjSendMsg(TOleAuto():New(hObj),"_" + cPropName,uValue)

******************************************************************************

FUNCTION OleGetProperty(hObj,cPropName)

RETURN __ObjSendMsg(TOleAuto():New(hObj),cPropName)

******************************************************************************

This is my XBP-file :
Code (fw): Select all Collapse
CINI = 
C_OUTPUTFOLDER = 
DEFFILE = 
INCLUDEFOLDERS = C:\FWH\INCLUDE
LAUTORUN = .F.
LDEBUG = .F.
LGUI = .F.
LIBFOLDERS = C:\FWH\LIB
LMT = .F.
LNOAUTOFWH = .F.
LPRG_CLASSICDEBUG = .F.
LPRG_DEBUG = .F.
LUSEDLL = .F.
MAPFILE = 
MYC_FLAGS = 
MYDEFINES = 
MYLINK_FLAGS = 
MYPRG_FLAGS = 
MYRC_FLAGS = 
MYSLY_FLAGS = 
OUTPUTFOLDER = OBJ
PRG_OUTPUTFOLDER = 
RC_OUTPUTFOLDER = 
RUNARGUMENTS = 
SLY_OUTPUTFOLDER = 
STARTIN = 
TARGETFOLDER = 

[PRG\IPADRES.PRG]
MYC_FLAGS = 
MYDEFINES = 
MYPRG_FLAGS = 

[C:\FWH-Obj\xhb.obj]

[C:\FWH-Lib\libcmt.lib]

[C:\FWH-Lib\libpcmt.lib]

[C:\FWH-Lib\mem32.lib]

[C:\FWH-Lib\png.lib]

[C:\FWH-Lib\send32.lib]

Maybe you can check what is wrong?

Thanks a lot in advance.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: New FWH 11.11
Posted: Fri Nov 25, 2011 09:06 AM

Downloaded all the lib files, get the following now:

xLINK: warning: Multiple '.CRT$XIC' sections found with different attributes (0x40000040 and 0xc0000040).
xLINK: warning: Multiple '.CRT$XIC' sections found with different attributes (0x40000040 and 0xc0000040).
Creating object: \6.00\exe\ord_mod.EXP
Creating library: \6.00\exe\ord_mod.LIB
xLINK: error: Unresolved external symbol 'securitycookie referenced from Fivehmx.lib(GETTASKS.obj)'.
xLINK: error: Unresolved external symbol '@
security_check_cookie@4 referenced from Fivehmx.lib(GETTASKS.obj)'.
xLINK: fatal error: 2 unresolved external(s).

Type: C >>>Couldn't build: ord_mod.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>>

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: New FWH 11.11
Posted: Fri Nov 25, 2011 10:04 AM

Sorry, Antonio, but I found the error.

I linked "libpcmt.lib" but it has to be "libcpmt.lib".

So, problem solved.

Thanks.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: New FWH 11.11
Posted: Fri Nov 25, 2011 10:09 AM

Michel,

Are you compiling with xHarbour.com & not getting any errors?

What version of xHarbour builder are you using? I'm still using an old version so i'm wondering if I need to also update xHarbour?

Best regards,

Pete

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FWH 11.11
Posted: Fri Nov 25, 2011 10:27 AM

Pete,

You have to recompile FWH\source\function\gettasks.prg (add it as another PRG of you app) and you will get it working :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
Re: New FWH 11.11
Posted: Fri Nov 25, 2011 10:52 AM

Application compiles now but as soon as i run it, i get:

ORD_MOD.exe has encountered a problem and needs to close.

I will do some test next week and let you know if i can narrow down the problem.

UPDATE - I put in a message in the first line of my code and it didnt appear - I'll try updating my xHarbour to see if that helps

regards,

Pete

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FWH 11.11
Posted: Fri Nov 25, 2011 11:07 AM

Pete,

With the current demo version is working fine. You may download it and try it

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: New FWH 11.11
Posted: Fri Nov 25, 2011 11:50 AM

Pete,

I currently use the xHarbour Builder version of Octobre 2011.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: New FWH 11.11
Posted: Mon Nov 28, 2011 02:02 AM

We have published a revised FWH 11.11 version

It includes the working makefiles for the VisualFW (32 and 64 bits) and also the makefile for samples\FiveGen*

It solves a bug with the recent new GRADIENT clause that was not properly releasing the previously used brush

Please download it again, thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: New FWH 11.11
Posted: Mon Nov 28, 2011 08:05 AM

Antonio,

Does it include TBTNBMP fix?.

Thank you.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82