erro na compilacao do SAMPLES\TESTOLE.PRG

Post Reply
siscat
Posts: 14
Joined: Wed Oct 26, 2005 2:04 pm
Location: Porto Alegre

erro na compilacao do SAMPLES\TESTOLE.PRG

Post by siscat »

por favor, estou tentando compilar o programa TESTOLE.PRG da versao 2.7 com o xHarbour 0.99.60 free e estou tendo estes erros:

Code: Select all

Harbour.Exe testole.prg /m /n0 /w0 /a /es2 /ie:\fwh_27\include;e:\xh\include /iE:\xH_09960\Include /dDBF /d__HARBOUR__ /oObj\testole.c
xHarbour Compiler build 0.99.60 (SimpLex)
Copyright 1999-2005, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'testole.prg'...
Lines 37, Functions/Procedures 1
Generating C source output to 'Obj\testole.c'...
Done.
Bcc32.Exe -c -5 -6 -OS -a8  -DHB_FM_STATISTICS_OFF;__HARBOUR__ -Ie:\fwh_27\include;e:\xh\include -IE:\xH_09960\Include;E:\BCC55\Include  -nObj Obj\testole.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Obj\testole.c:
Error E2451 Obj\testole.c 26: Undefined symbol 'HB_FS_LOCAL'
Error E2141 Obj\testole.c 26: Declaration syntax error
Error E2190 Obj\testole.c 26: Unexpected }
Error E2190 Obj\testole.c 26: Unexpected }
Error E2040 Obj\testole.c 26: Declaration terminated incorrectly
Error E2190 Obj\testole.c 26: Unexpected }
Error E2190 Obj\testole.c 26: Unexpected }
Error E2040 Obj\testole.c 26: Declaration terminated incorrectly
Error E2190 Obj\testole.c 33: Unexpected }
Error E2190 Obj\testole.c 33: Unexpected }
Error E2109 Obj\testole.c 33: Not an allowed type in function hb_vm_SymbolInit_TESTOLE
*** 11 errors in Compile ***
alguem tem ideia do que pode ser?

obrigado
Marllon Figueiredo
Analista de Sistemas
Siscat Software
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marllon,

Change this:
-Ie:\fwh_27\include;e:\xh\include -IE:\xH_09960

into this:
-Ie:\fwh_27\include -IE:\xH_09960\include
regards, saludos

Antonio Linares
www.fivetechsoft.com
siscat
Posts: 14
Joined: Wed Oct 26, 2005 2:04 pm
Location: Porto Alegre

erro na compilacao do SAMPLES\TESTOLE.PRG

Post by siscat »

Antonio,

fiz o ajuste para a compilacao conforme voce sujeriu.

desta vez compilou sem nenhum erro, más ao executar o programa o mesmo gera erro fatal e aborta sem gerar o error.log

Image

minha plataforma é Windows XP SP2 e Office 2003

obrigado
Marllon Figueiredo
Analista de Sistemas
Siscat Software
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marllon,

Sí, por lo visto la propiedad "VBE" no es accesible ahora.
regards, saludos

Antonio Linares
www.fivetechsoft.com
siscat
Posts: 14
Joined: Wed Oct 26, 2005 2:04 pm
Location: Porto Alegre

Post by siscat »

Antonio,

o que eu devo fazer para solucionar isto.?

minha intenção é a partir da minha app abrir o Word na minha propria janela, abrir um documento e fazer as alterações necessarias no mesmo... tudo automaticamente..

Marllon
Marllon Figueiredo
Analista de Sistemas
Siscat Software
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marllon,

Vikthor tiene desarrollada la clase TWord. Vamos a pedírsela para publicarla aqui y que sea accesible a todos los usuarios.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marllon,

Esta es la clase TWord, aunque no se si es la versión más reciente:
http://hyperupload.com/download/0255fbc ... d.zip.html
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
siscat
Posts: 14
Joined: Wed Oct 26, 2005 2:04 pm
Location: Porto Alegre

Post by siscat »

obrigado Antonio.
Marllon Figueiredo
Analista de Sistemas
Siscat Software
siscat
Posts: 14
Joined: Wed Oct 26, 2005 2:04 pm
Location: Porto Alegre

Post by siscat »

baixei a classe TWord más não consegui compilar com xHarbour.. apenas com Clipper!

lendo o manual que acompanha a classe eu vi o seguinte:
Requisitos.

En caso de FW 16 bits:
LIB OLE2, FiveC, Five, etc.

En caso de Harbour:
Enlazar la librería HBOle antes de las de FW, dependerá del método que utilices para enlazar.

a OLE2.LIB veio no pacote que eu baixei nos links enviados acima... más esta HBOLE.LIB não está em lugar nenhum!!! Onde poso encontra-la? Ou devo gera-la a partir dos fontes baixados?

Marllon
Marllon Figueiredo
Analista de Sistemas
Siscat Software
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marllon,

Esa librería no es necesaria, ya que FWH proporciona las funciones equivalentes.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply