Can't open #include file 'windows.ch' onde baixar ?

Projeto MiniGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

porter
Usuário Nível 5
Usuário Nível 5
Mensagens: 1057
Registrado em: 10 Dez 2009 16:44
Localização: OLIMPIA-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por porter »

olá pessoal, estou compilando com o HMG IDE.3.4.1 estou abrindo todos esses includes, eles estão faltando e dando erro de compilação,
Error F0029 Can't open #include file 'windows.ch', onde posso baixar essas libs, e no HMG IDE, onde setar ?

Código: Selecionar todos

#include "windows.ch"
#include "hwgui.ch"
#include "common.ch"
#include "guilib.ch"
#include "wvgparts.ch"
#include "hbgtinfo.ch"
#include "hbcompat.ch"
#include "hbdyn.ch"
#include "fileio.ch"
#include "harupdf.ch"
#include "hbzebra.ch"
#include "wvtwin.ch"
#include "hbgtwvg.ch"
#include "hbdyn.ch"
#include "hbthread.ch"
#include "hbclass.ch"
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por JoséQuintas »

Tá fazendo teste fora do normal?

Talvez o velho

Código: Selecionar todos

dir c:\windows.ch /s/b
Pelos nomes:

- pasta hmg3\include (aqui só encontrei na HMG3 a windows.ch)
- pasta hwgui\include
- pasta harbour\include
- pasta harbour\contrib\gtwvg
- pasta harbour\contrib\xhb
- pasta harbour\contrib\hbhpdf
- pasta harbour\contrib\hbzebra

ou usando facilidades do hbmk2, se hbide aceitar:

gtwvg.hbc xhb.hbc hbhpdf.hbc hbzebra.hbc
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
porter
Usuário Nível 5
Usuário Nível 5
Mensagens: 1057
Registrado em: 10 Dez 2009 16:44
Localização: OLIMPIA-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por porter »

Esse arquivo está em c:\HMG.3.4.1\HARBOUR\Contrib\gtwvg\wvgparts.ch

#include "wvgparts.ch"

Eu só consigo compilar sem erro: Can't open #include file 'wvgparts.ch'
se copiar esse arquivo para dentro da pasta do sistema

#include "wvgparts.ch" // c:\hmg.3.4.1\harbour\contrib\gtwvg - problema
#include "hbgtinfo.ch" // c:\hmg.3.4.1\harbour\include

O hbgtinfo.ch compila normal, mas o wvgparts.ch, da erro de compilação

Estou compilando com o HMD IDE 3.4.1
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por JoséQuintas »

No HBP indique as pastas de CH, usando "L" maiúsculo.

Código: Selecionar todos

-Lpasta
-Lpasta
-Lpasta
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
porter
Usuário Nível 5
Usuário Nível 5
Mensagens: 1057
Registrado em: 10 Dez 2009 16:44
Localização: OLIMPIA-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por porter »

No HBP indique as pastas de CH, usando "L" maiúsculo.
Tentei com todos os comandos abaixo e nenhum deu certo, da a mesma mensagem de erro.
Os .CH que estão em c:\hmg.3.4.1\harbour\include, não dá erro na compilação.

-L gtwvg

-Lgtwvg

-L c:\hmg.3.4.1\harbour\contrib\gtwvg

-Lc:\hmg.3.4.1\harbour\contrib\gtwvg

-L hmg.3.4.1\harbour\contrib\gtwvg

-Lhmg.3.4.1\harbour\contrib\gtwvg
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por JoséQuintas »

Desculpe, erro grave meu na informação.
-L é pra pastas de LIBs (.LIB e .A)
Pra pastas arquivos ch é -I ( i=include, apesar do help do hbmk2 indicar em minúsculo, costumo usar maiúsculo)

Só lembrar da inicial:
LIB começa com L, então L minúsculo é nome de lib, e L maiúsculo é pasta
INCLUDE começa com i, mas não segue o mesmo esquema de LIB, existe apenas opção de acrescentar pasta
Não sei porque, pra acrescentar CH é +u
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
porter
Usuário Nível 5
Usuário Nível 5
Mensagens: 1057
Registrado em: 10 Dez 2009 16:44
Localização: OLIMPIA-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por porter »

Não compila nem por decreto, tentei com i maiusculo e minusculo, não sei onde estou errando.

Código: Selecionar todos

-ihmg.3.4.1\harbour\contrib\gtwvg

-ic:\hmg.3.4.1\harbour\contrib\gtwvg
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por JoséQuintas »

Pelo menos os erros mudaram/reduziram? ou continua tudo igual?
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por JoséQuintas »

Vou fazer por etapas.
Criei um arquivo parecido com o seu pra teste:

Código: Selecionar todos

#include "windows.ch"
#include "hwgui.ch"
#include "common.ch"
#include "guilib.ch"
#include "wvgparts.ch"
#include "hbgtinfo.ch"
#include "hbcompat.ch"
#include "hbdyn.ch"
#include "fileio.ch"
#include "harupdf.ch"
#include "hbzebra.ch"
#include "wvtwin.ch"
#include "hbgtwvg.ch"
#include "hbdyn.ch"
#include "hbthread.ch"
#include "hbclass.ch"

PROCEDURE Main

   RETURN
d:\temp>hbmk2 test
hbmk2: Processing environment options: -comp=msvc
Harbour 3.4.0dev (2114a6e8b2) (2017-03-09 12:39)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'test.prg'...
test.prg(2) Error F0029 Can't open #include file 'windows.ch'
[/code]

rem Tô ficando velho, comentei anteriormente que era HMG3, mas é HWGUI.... rs

d:\temp>dir \windows.ch /s/b
d:\CVSFiles\hwgui-svn\hwgui\include\windows.ch
d:\CVSFiles\josequintas\allgui\hwgui\include\windows.ch

d:\temp>hbmk2 test -id:\cvsfiles\josequintas\allgui\hwgui\include
hbmk2: Processing environment options: -comp=msvc
Harbour 3.4.0dev (2114a6e8b2) (2017-03-09 12:39)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'test.prg'...
test.prg(6) Error F0029 Can't open #include file 'wvgparts.ch'
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por JoséQuintas »

d:\temp>dir \wvgparts.ch /s/b
d:\CDROM\FONTES\testes\gtwvg\wvgparts.ch
d:\CVSFiles\harbour32\contrib\gtwvg\wvgparts.ch
d:\CVSFiles\vszakats\contrib\gtwvg\wvgparts.ch
d:\harbour\contrib\gtwvg\wvgparts.ch

d:\temp>hbmk2 test -id:\cvsfiles\josequintas\allgui\hwgui\include -id:\harbour\contrib\gtwvg
hbmk2: Processing environment options: -comp=msvc
Harbour 3.4.0dev (2114a6e8b2) (2017-03-09 12:39)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'test.prg'...
test.prg(8) Error F0029 Can't open #include file 'hbcompat.ch'

d:\temp>dir \hbcompat.ch /s/b
d:\CVSFiles\harbour32\contrib\xhb\hbcompat.ch
d:\CVSFiles\josequintas\allgui\oohg\samples\dbview\fmgs\hbcompat.ch
d:\CVSFiles\oohg-cvs\oohg\samples\dbview\fmgs\hbcompat.ch
d:\CVSFiles\vszakats\contrib\xhb\hbcompat.ch
d:\harbour\contrib\xhb\hbcompat.ch

d:\temp>hbmk2 test -id:\cvsfiles\josequintas\allgui\hwgui\include -id:\harbour\contrib\gtwvg -id:\harbour\contrib\xhb
hbmk2: Processing environment options: -comp=msvc
Harbour 3.4.0dev (2114a6e8b2) (2017-03-09 12:39)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'test.prg'...
test.prg(11) Error F0029 Can't open #include file 'harupdf.ch'

d:\temp>dir \harupdf.ch /s/b
d:\CVSFiles\harbour32\contrib\hbhpdf\harupdf.ch
d:\CVSFiles\josequintas\allgui\hmg3\INCLUDE\harupdf.ch
d:\CVSFiles\vszakats\contrib\hbhpdf\harupdf.ch
d:\harbour\contrib\hbhpdf\harupdf.ch

d:\temp>hbmk2 test -id:\cvsfiles\josequintas\allgui\hwgui\include -id:\harbour\contrib\gtwvg -id:\harbour\contrib\xhb -id:\harbour\contrib\hbhpdf
hbmk2: Processing environment options: -comp=msvc
Harbour 3.4.0dev (2114a6e8b2) (2017-03-09 12:39)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'test.prg'...
test.prg(12) Error F0029 Can't open #include file 'hbzebra.ch'
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por JoséQuintas »

d:\temp>dir \hbzebra.ch /s/b
d:\CVSFiles\harbour32\contrib\hbzebra\hbzebra.ch
d:\CVSFiles\josequintas\allgui\hmg3\INCLUDE\hbzebra.ch
d:\CVSFiles\vszakats\contrib\hbzebra\hbzebra.ch
d:\harbour\contrib\hbzebra\hbzebra.ch

d:\temp>hbmk2 test -id:\cvsfiles\josequintas\allgui\hwgui\include -id:\harbour\contrib\gtwvg -id:\harbour\contrib\xhb -id:\harbour\contrib\hbhpdf -id:\harbour\contrib\hbzebra
hbmk2: Processing environment options: -comp=msvc
Harbour 3.4.0dev (2114a6e8b2) (2017-03-09 12:39)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'test.prg'...
d:\harbour\contrib\gtwvg\wvtwin.ch(50) Error F0029 Can't open #include file 'hbwin.ch'

d:\temp>dir \hbwin.ch /s/b
d:\CVSFiles\harbour32\contrib\hbwin\hbwin.ch
d:\CVSFiles\vszakats\contrib\hbwin\hbwin.ch
d:\harbour\contrib\hbwin\hbwin.ch

d:\temp>hbmk2 test -id:\cvsfiles\josequintas\allgui\hwgui\include -id:\harbour\contrib\gtwvg -id:\harbour\contrib\xhb -id:\harbour\contrib\hbhpdf -id:\harbour\contrib\hbzebra -id:\harbour\contrib\hbwin
hbmk2: Processing environment options: -comp=msvc
Harbour 3.4.0dev (2114a6e8b2) (2017-03-09 12:39)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'test.prg'...
Lines 15091, Functions/Procedures 1
Generating C source output to 'c:\temp\hbmk_2taty6.dir\test.c'... Done.
test.c
Resultado final, no meu caso
test
-id:\cvsfiles\josequintas\allgui\hwgui\include
-id:\harbour\contrib\gtwvg
-id:\harbour\contrib\xhb
-id:\harbour\contrib\hbhpdf
-id:\harbour\contrib\hbzebra
-id:\harbour\contrib\hbwin
Como só tem os CH, mas não chama nenhuma funçào, não reclamou da falta de lib, apenas da falta dos arquivos ch usados nos #include
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por JoséQuintas »

Comentário adicional:

No dir /s/b apareceram várias pastas com o mesmo arquivo ch.

No meu caso, na minha máquina, SEMPRE estou usando o Harbour de d:\harbour, então esta é a pasta preferencial
E os arquivos de LIBs, deixei em d:\cvsfiles\josequintas\allgui, então o conteúdo daqui será usado pra decidir sobre arquivos de HWGUI, HMG, HMGExtended, OOHG

Convém entender aonde instalou seus arquivos, que pasta de Harbour está usando, etc.
Esse é um ponto muitíssimo importante.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
porter
Usuário Nível 5
Usuário Nível 5
Mensagens: 1057
Registrado em: 10 Dez 2009 16:44
Localização: OLIMPIA-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por porter »

Estou compilando somente um prg, e não estou chamando nenhuma função, apenas quero ver como compila e mostrar uma tela, só isso, o
prg é pequeno.

Código: Selecionar todos

#include "hmg.ch"
#include "common.ch"        // c:\hmg.3.4.1\harbour\include
#include "wvgparts.ch"      // c:\hmg.3.4.1\harbour\contrib\gtwvg        - problema
#include "hbgtinfo.ch"      // c:\hmg.3.4.1\harbour\include
#include "hbcompat.ch"      // c:\hmg.3.4.1\harbour\contrib\xhb          - problema
#include "hbdyn.ch"         // c:\hmg.3.4.1\harbour\include 
#include "fileio.ch"        // c:\hmg.3.4.1\harbour\include
#include "harupdf.ch"       // c:\hmg.3.4.1\harbour\contrib\harupdf
#include "hbzebra.ch"	     // c:\hmg.3.4.1\harbour\contrib\gtwvg        - problema
#include "wvtwin.ch"        // c:\hmg.3.4.1\harbour\contrib\gtwvg        - problema
#include "hbgtwvg.ch"       // c:\hmg.3.4.1\harbour\contrib\gtwvg        - problema
#include "hbdyn.ch"         // c:\hmg.3.4.1\harbour\include 
#include "hbthread.ch"      // c:\hmg.3.4.1\harbour\include
#include "inkey.ch"         // c:\hmg.3.4.1\harbour\include

Function Main( cArqRel )
hb_Default(@cArqRel, "" ) 
IF Empty( cArqRel ) 
cArqRel := "TESTE.TXT"
cTexto := CHR(27)+"E"
cTexto += CHR(27)+"(12U"   
cTexto += "O  signat rio  do  presente  instrumento,  denominado  Contrato    de" + hb_Eol()
cTexto += "Loca‡Æo ‚ a comprova‡Æo de servi‡os entre  Locadora  e  Locat rio(a)," + hb_Eol()
cTexto += "onde o primeiro fornecerÿ ao segundo(a), fitas VHS,  DVDs,  CDs  e/ou" + hb_Eol()
cTexto += "Cartuchos  de  Games,   ora    denominado    produto,    por    tempo" + hb_Eol()
cTexto += "desde j  a locadora autorizada a emitir letra de cƒmbio ou duplicata," + hb_Eol()
cTexto += "com vencimento … vista e no valor de cada produto ao  pre‡o  do  dia," + hb_Eol()
cTexto += "conforme produto retirado e promover a execu‡Æo judicial de imediato," + hb_Eol()
cTexto += "incluindo tamb‚m o nome do(a) Locat rio(a) no SEPROC, SPC,  SERASA  e" + hb_Eol()
cTexto += "lista de inadimplentes.                                                "   
nHandle := fCreate( cArqRel )
fSeek( nHandle, 0, 2 )
fWrite( nHandle, cTexto )
fClose( nHandle )
ENDIF 
Load Window Main
Main.Center
Main.Activate

Return
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por JoséQuintas »

Ok, então seu fonte está errado, porque tem muito #include que não deveria ter.
Dá pra dizer que está uma prefeita bagunça, por causa dos #include.

Se é hwgui, comece deixando apenas o #include "hwgui.ch" e apague todos os outros.
Se é HMG, deixe somente #include "hmg.ch"

Na prática não é nada de nenhum, porque nem tela está usando ainda.... rs

Pode remover todos os #include, e as últimas linhas pra criação de janela.
Pelo que o programa faz, por enquanto não tem tela console nem tela gráfica.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
porter
Usuário Nível 5
Usuário Nível 5
Mensagens: 1057
Registrado em: 10 Dez 2009 16:44
Localização: OLIMPIA-SP

Can't open #include file 'windows.ch' onde baixar ?

Mensagem por porter »

Obrigado JoséQuintas, entendi, não posso deixar includes que não estão sendo usados.
Responder