FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Fivewin demo + harbour
Posts: 17
Joined: Wed Nov 14, 2012 10:53 PM
Fivewin demo + harbour
Posted: Fri Nov 23, 2012 11:43 PM

Hola a todos.

Me he instalado la versiΓ³n demo de fwh de ls psgina oficial y la versiΓ³n de harbour para esa versiΓ³n de fwh y borland. Modifico el fichero buildh.bat con los path correspondientes e intento compilar los ejemplos de fwh, empiezo con tutor03 y no funciona salen errores.

Que hago mal.

xedit 2.0 /harbour 1.1.0./ borland c++ 5.5.1
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: Fivewin demo + harbour
Posted: Sat Nov 24, 2012 04:32 AM

Coloca el error que te da, asi podriamos ayudarte mejor, saludos... :shock:

Dios no estΓ‘ muerto...



Gracias a mi Dios ante todo!
Posts: 17
Joined: Wed Nov 14, 2012 10:53 PM
Re: Fivewin demo + harbour
Posted: Sat Nov 24, 2012 10:02 AM

Hola, uso las siguientes versiones:

HARBOUR 1.1-0 Ints..
BORLAND c++ 5.5.1BUILD
FIVEWIN 6.12 2006

Cambio en buildh.bat los path, e intento compilar tutor08.prg

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FiveWin for Harbour 6.12 - December 2006 Harbour development power β”‚β–„
β”‚ (c) FiveTech, 1993-2006 for Microsoft Windows 95/98/NT/2000/ME and XP β”‚β–ˆ
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β–ˆ
Β  β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€
Compiling...
Harbour devel build 1.1-0 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'TUTOR08.prg' and generating preprocessed output to 'TUTOR08.ppo'...
TUTOR08.prg(106) Warning W0006 Procedure returns value
Lines 3650, Functions/Procedures 4
Generating C source output to 'TUTOR08.c'... Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
tutor08.c:
Error E2209 tutor08.c 6: Unable to open include file 'hbvmpub.h'
Error E2209 tutor08.c 7: Unable to open include file 'hbpcode.h'
Error E2209 tutor08.c 8: Unable to open include file 'hbinit.h'
Error E2258 tutor08.c 11: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 12: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 13: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 14: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 15: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 16: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 17: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 18: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 19: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 20: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 21: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 22: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 23: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 24: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 25: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 26: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 27: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 28: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 29: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 30: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 31: Declaration was expected in function HB_FUNC
Error E2258 tutor08.c 32: Declaration was expected in function HB_FUNC
Error E2228 tutor08.c 32: Too many error or warning messages in function HB_FUNC

*** 26 errors in Compile ***
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'TUTOR08.OBJ'
* There are errors
C:\FWH\SAMPLES>

xedit 2.0 /harbour 1.1.0./ borland c++ 5.5.1
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Fivewin demo + harbour
Posted: Sat Nov 24, 2012 02:21 PM

Le falta el path a los ficheros de cabecera de Harbour cuando se llama al bcc32.exe

bcc32.exe -ic:\harbour\include ...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 17
Joined: Wed Nov 14, 2012 10:53 PM
Re: Fivewin demo + harbour
Posted: Sun Nov 25, 2012 09:07 AM

Muchas gracias, ya me funciΓ³na compilaciΓ³n con el bat.

Lo probare poniΓ©ndolo en xedit tambiΓ©n.

Ahora tengo otra duda, compilo el ejemplo del foro

viewtopic.php?f=6t=15135#

Siempre me sale error en @ ....xbrowse

No soy capaz de usar xbrowse de ninguna manera, quiero visualizar un ficher dbf y no soy capaz

&

xedit 2.0 /harbour 1.1.0./ borland c++ 5.5.1
Posts: 17
Joined: Wed Nov 14, 2012 10:53 PM
Re: Fivewin demo + harbour
Posted: Mon Nov 26, 2012 12:52 PM
Hola, intento compilar este ejemplo y no funciona.

Code (fw): Select all Collapse
#include "FiveWin.ch"
#include "InKey.ch"
#include "xbrowse.ch"


REQUEST DBFCDX


function Main()

Β  Β local oWnd, oBmp, oBar


Β  Β CheckCustCdx()

Β  Β USE CUSTOMER NEW SHARED VIA "DBFCDX"
Β  Β SET ORDER TO TAG FIRST
Β  Β GO TOP

Β  Β DEFINE WINDOW oWnd TITLE "New TXBrowse class (only for FWH)" 
Β  Β  Β  
Β  Β define buttonbar oBar of oWnd size 32,32
Β  Β 
Β  Β define button prompt "Test" of oBar action( Incremental( oWnd ) )
Β  Β  Β  
Β  Β SET MESSAGE OF oWnd TO FWVERSION + ", " + FWCOPYRIGHT CENTERED TIME DATE

Β  Β ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------//

STATIC FUNCTION Incremental( oWnd )

Β  Β local oChild, oBrw, oSay, cTexto := "", cAlias
Β  Β 
Β  Β cAlias := select()

Β  Β DEFINE dialog oChild TITLE "Incremental seek & Inset style browse" OF oWnd size 600,400 pixel
Β  Β 
Β  Β @ 10,10 say "Busqueda Incremental:" of oChild size 60,12 pixel
Β  Β @ 10,65 say oSay prompt cTexto of oChild size 50,12 pixel
Β  Β 
Β  [b]Β @ 25,5 xbrowse oBrw alias cAlias autocols size 290,170 pixel[/b]
Β  Β 
Β  Β oBrw:bSeek := {|c| DbSeek( Upper( c ) ) }
Β  Β oBrw:oSeek := oSay

Β  Β oBrw:CreateFromCode()


Β  Β ACTIVATE dialog oChild ON INIT ( oBrw:SetFocus(), oChild:Resize() )

RETURN NIL


//----------------------------------------------------------------------------//

static function CheckCustCdx()

Β  Β local n

Β  Β if File( "customer.cdx" )
// Β  Β  Β if MsgYesNo( "Re-index Customer.dbf ?" )
Β  Β  Β  Β  Β FErase( "customer.cdx" )
// Β  Β  Β endif
Β  Β endif

Β  Β if !File( "customer.cdx" )
Β  Β  Β  USE CUSTOMER EXCLUSIVE VIA "DBFCDX"
Β  Β  Β  for n := 1 to FCount()
Β  Β  Β  Β  Β CreateTag( FieldName( n ) )
Β  Β  Β  next
Β  Β  Β  USE
Β  Β endif

return nil

//----------------------------------------------------------------------------//

static function CreateTag( ctag )

Β  Β INDEX ON &ctag TAG &ctag

return nil


El mensaje de error que sale es en esta linea:

@ 25,5 xbrowse oBrw alias cAlias autocols size 290,170 pixel

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FiveWin for Harbour 6.12 - December 2006 Harbour development power β”‚β–„
β”‚ (c) FiveTech, 1993-2006 for Microsoft Windows 95/98/NT/2000/ME and XP β”‚β–ˆ
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β–ˆ
Β  β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€
Compiling...
Harbour devel build 1.1-0 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'p.prg' and generating preprocessed output to 'p.ppo'...
p.prg(45) Error E0030 Syntax error: "syntax error at '@'"
1 error

No code generated
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2194: Could not find file 'p.c'
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Unable to open file 'P.OBJ'
* There are errors

C:\FWH\SAMPLES>
xedit 2.0 /harbour 1.1.0./ borland c++ 5.5.1
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Fivewin demo + harbour
Posted: Mon Nov 26, 2012 12:57 PM

David,

En la versiΓ³n 6.12 de FWH ese comando no estaba implementado

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 17
Joined: Wed Nov 14, 2012 10:53 PM
Re: Fivewin demo + harbour
Posted: Mon Nov 26, 2012 01:10 PM

Muchas gracias

Entonces para que esta funciΓ³n pueda usarse no hay versiΓ³n demo?

xedit 2.0 /harbour 1.1.0./ borland c++ 5.5.1

Continue the discussion