Função para localizar um texto em um richedit

Projeto HwGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

Avatar do usuário
asimoes
Colaborador
Colaborador
Mensagens: 4919
Registrado em: 26 Abr 2007 16:48
Localização: RIO DE JANEIRO-RJ

Função para localizar um texto em um richedit

Mensagem por asimoes »

Quintas,

Segue fonte atual e icones do preview de relatório.
h-Preview.zip
Fonte do Preview de relatório - para HwGui 2.17
(1.33 MiB) Baixado 255 vezes
►Harbour 3.x | Minigui xx-x | HwGui◄
Pense nas possibilidades abstraia as dificuldades.
Não corrigir nossas falhas é o mesmo que cometer novos erros.
A imaginação é mais importante que o conhecimento. (Albert Einstein)
Avatar do usuário
asimoes
Colaborador
Colaborador
Mensagens: 4919
Registrado em: 26 Abr 2007 16:48
Localização: RIO DE JANEIRO-RJ

Função para localizar um texto em um richedit

Mensagem por asimoes »

Ignorem o último post e baixem este.

Atenção para o arquivo guilib.ch modificada, veja BACKTRANSPARENTE o comando original é TRANSPARENT, modifiquei porque estava dando erro quando compilando com GTWVG ou GTWVT, renomeei e acabou o conflito.
h-Preview.zip
Exemplos da imagem com todos os fontes e icones
(7.51 MiB) Baixado 248 vezes
Screen Shot 04-19-17 at 06.48 PM.PNG
►Harbour 3.x | Minigui xx-x | HwGui◄
Pense nas possibilidades abstraia as dificuldades.
Não corrigir nossas falhas é o mesmo que cometer novos erros.
A imaginação é mais importante que o conhecimento. (Albert Einstein)
Avatar do usuário
asimoes
Colaborador
Colaborador
Mensagens: 4919
Registrado em: 26 Abr 2007 16:48
Localização: RIO DE JANEIRO-RJ

Função para localizar um texto em um richedit

Mensagem por asimoes »

Off toppic

Exemplo usando flashplayer
QQ problema informem

https://drive.google.com/open?id=0B0Nmb ... UJQNjhBUVk
Screen Shot 04-19-17 at 06.58 PM.PNG
►Harbour 3.x | Minigui xx-x | HwGui◄
Pense nas possibilidades abstraia as dificuldades.
Não corrigir nossas falhas é o mesmo que cometer novos erros.
A imaginação é mais importante que o conhecimento. (Albert Einstein)
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Função para localizar um texto em um richedit

Mensagem por JoséQuintas »

Seus fontes são de endoidar... kkkkk

Primeiro problema:

Aonde encontro hwg_compat.ch

Por acaso na hwgui 2.17 já existia uma compatibilidade com outra versão anterior?

Na 2.20 existe o hwgcompat.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
asimoes
Colaborador
Colaborador
Mensagens: 4919
Registrado em: 26 Abr 2007 16:48
Localização: RIO DE JANEIRO-RJ

Função para localizar um texto em um richedit

Mensagem por asimoes »

Quintas,

Ops, segue o hwg_compat.ch
hwg_compat.ch
(695 Bytes) Baixado 195 vezes
Se for igual a hwgcompat.ch, descarta
►Harbour 3.x | Minigui xx-x | HwGui◄
Pense nas possibilidades abstraia as dificuldades.
Não corrigir nossas falhas é o mesmo que cometer novos erros.
A imaginação é mais importante que o conhecimento. (Albert Einstein)
Avatar do usuário
asimoes
Colaborador
Colaborador
Mensagens: 4919
Registrado em: 26 Abr 2007 16:48
Localização: RIO DE JANEIRO-RJ

Função para localizar um texto em um richedit

Mensagem por asimoes »

Off topic: Fonte demo.prg com o método exemplo usando flasplayer em uma janela MDICHILD
DEMO.PRG
(24.35 KiB) Baixado 422 vezes
►Harbour 3.x | Minigui xx-x | HwGui◄
Pense nas possibilidades abstraia as dificuldades.
Não corrigir nossas falhas é o mesmo que cometer novos erros.
A imaginação é mais importante que o conhecimento. (Albert Einstein)
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Função para localizar um texto em um richedit

Mensagem por JoséQuintas »

Só posso dizer uma coisa:
Put. que par...
Vai complicar assim lá longe....

Isso é de teste ou de uso?

Minha pergunta foi errada, mas já encontrei a resposta.
Apesar de não encontrar hmg_compat.ch, tava procurando aonde estava sendo indicado esse ch.
O projeto tem 3 arquivos de configuração

demo.hbp
# Autor : Alexandre Simões
# Versão : 2.0
# Data : 04/09/2015
# Harbour : Harbour 3.4.0dev
# http://harbour-project.org/
# Compilador: MinGW GNU C 5.1 (32-bit)
# ---------------------------------------------------------------------------------
# Nome do Executável
# ---------------------------------------------------------------------------------
# -o<outname> Diretiva para nome de arquivo de saída
-odemo
-dHARBOUR
-b
#-u+hwg_compat.ch
#-u+hbcompat.ch
# ---------------------------------------------------------------------------------
# Prg(s) e Rc(s)
# ---------------------------------------------------------------------------------
DEMO.PRG
TESTE.PRG
HHTML.PRG
TSTRECTANGLE.PRG
ZE_RMCHART.PRG
MSGOPTIONS.PRG
ERRORSYS.prg
MESSAGEBOX.PRG
MENUTO.PRG
PROCGUI.PRG
RESTAURAWVT.PRG
MRPRINT.PRG
_WINMISC.CPP

P:\GERAL\HARBOUR\APP.RC
DEMO.HBC
HBCT.HBC
GTWVG.HBC
HBNF.HBC
XHB.HBC
HBGT.HBC
HBWIN.HBC
HBZEBRA.HBC
HBHPDF.HBC
HBMISC.HBC
HBMEMIO.HBC
#HBTEST.HBC
demo.hbc
{win}incpaths=\hb32FORK\hwgui\include;

{win}libpaths=\hb32FORK\hwgui\lib

{win}gt=gtgui

{win}libs=hwgui hbnf
hbmk.hbm
demo.hbc
xhb.hbc
hbct.hbc
gtwvg.hbc
gtwvw.hbc
hbgt.hbc
hbwin.hbc
hbzebra.hbc
hbhpdf.hbc
hbmisc.hbc
hbmemio.hbc
hbtest.hbc
-workdir=.\OBJMINGW\
-head=full
-n
-warn=no
-inc
-mt
#-b
-u+hwg_compat.ch
-u+hbcompat.ch
#-u+hbwin.ch
#-compr
-strip
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

Função para localizar um texto em um richedit

Mensagem por JoséQuintas »

Exemplo do carvalho....
A primeira coisa é fazer do meu jeito: a pasta é o projeto.
d:\temp\hpreview>hbmk2 *.prg *.rc hwgui.hbc -otest xhb.hbc hbzebra.hbc gtwvg.hbc -m -n -rebuild hbmemio.hbc
...
MRPRINT.prg:796:0: warning: ignoring #pragma comment [-Wunknown-pragmas]
hbmk2: Linking... test.exe
.hbmk/win/mingw/tst.o:tst.c:(.text+0x0): multiple definition of `HB_FUN_MAIN'
.hbmk/win/mingw/DEMO.o:DEMO.c:(.text+0x280): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0x20): multiple definition of `HB_FUN_AMAX'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0x60): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0x40): multiple definition of `HB_FUN_GRAPHIC1'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0x80): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0x60): multiple definition of `HB_FUN_GRAPHIC2'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0xa0): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0x80): multiple definition of `HB_FUN_GRAPHIC3'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0xc0): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0xa0): multiple definition of `HB_FUN_GRAPHIC4'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0xe0): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0xc0): multiple definition of `HB_FUN_GRAPHIC5'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0x100): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0xe0): multiple definition of `HB_FUN_GRAPHIC6'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0x120): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0x100): multiple definition of `HB_FUN_GRAPHIC7'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0x140): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0x120): multiple definition of `HB_FUN_GRAPHIC8'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0x160): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0x140): multiple definition of `HB_FUN_GRAPHIC9'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0x180): first defined here
.hbmk/win/mingw/tst.o:tst.c:(.text+0x160): multiple definition of `HB_FUN_GRAPHIC10'
.hbmk/win/mingw/TESTE.o:TESTE.c:(.text+0x1a0): first defined here
.hbmk/win/mingw/errorsys.o:errorsys.c:(.text+0x20): multiple definition of `HB_FUN_ERRORSYS'
.hbmk/win/mingw/ERRORSYS.o:errorsys.c:(.text+0x20): first defined here
.hbmk/win/mingw/errorsys.o:errorsys.c:(.text+0x40): multiple definition of `HB_FUN_ERRORMESSAGE'
.hbmk/win/mingw/ERRORSYS.o:errorsys.c:(.text+0x40): first defined here
.hbmk/win/mingw/errorsys.o:errorsys.c:(.text+0x60): multiple definition of `HB_FUN_ERRORSYS_WRITEERRORLOG'
.hbmk/win/mingw/ERRORSYS.o:errorsys.c:(.text+0x60): first defined here
.hbmk/win/mingw/errorsys.o:errorsys.c:(.text+0x80): multiple definition of `HB_FUN_ERRORSYS_SHOWERRORLOG'
.hbmk/win/mingw/ERRORSYS.o:errorsys.c:(.text+0x80): first defined here
.hbmk/win/mingw/allgui.o:allgui.c:(.text+0x0): multiple definition of `HB_FUN_HB_GTSYS'
.hbmk/win/mingw/DEMO.o:DEMO.c:(.text+0x2c0): first defined here
d:/harbour/lib/win/mingw/libxhb.a(xhbdepr.o):xhbdepr.c:(.text+0x20): multiple definition of `HB_FUN_HB_OSNEWLINE'
.hbmk/win/mingw/harbour34.o:harbour34.c:(.text+0x60): first defined here
.hbmk/win/mingw/DEMO.o:DEMO.c:(.data+0x6f8): undefined reference to `HB_FUN_HWG_RGB'
.hbmk/win/mingw/HHTML.o:HHTML.c:(.data+0x48): undefined reference to `HB_FUN_HB_SYMBOL_UNUSED'
.hbmk/win/mingw/MSGOPTIONS.o:MSGOPTIONS.c:(.data+0x1d8): undefined reference to `HB_FUN_HWG_RGB'
.hbmk/win/mingw/PROCGUI.o:PROCGUI.c:(.data+0x158): undefined reference to `HB_FUN_GETDESKTOPREALWIDTH'
.hbmk/win/mingw/PROCGUI.o:PROCGUI.c:(.data+0x168): undefined reference to `HB_FUN_GETDESKTOPREALHEIGHT'
.hbmk/win/mingw/PROCGUI.o:PROCGUI.c:(.data+0x308): undefined reference to `HB_FUN_GETDESKTOPREALTOP'
.hbmk/win/mingw/PROCGUI.o:PROCGUI.c:(.data+0x318): undefined reference to `HB_FUN_GETDESKTOPREALLEFT'
.hbmk/win/mingw/PROCGUI.o:PROCGUI.c:(.data+0x13c8): undefined reference to `HB_FUN_C_PUTFILE'
.hbmk/win/mingw/tst.o:tst.c:(.data+0x398): undefined reference to `HB_FUN_HB_SYMBOL_UNUSED'
.hbmk/win/mingw/tstRectangle.o:tstRectangle.c:(.data+0x48): undefined reference to `HB_FUN_HB_SYMBOL_UNUSED'
.hbmk/win/mingw/ze_rmchart.o:ze_rmchart.c:(.data+0x48): undefined reference to `HB_FUN_HB_SYMBOL_UNUSED'
collect2.exe: error: ld returned 1 exit status
hbmk2: Error: Running linker. 1
Duas rotinas Main() ?
Funções duplicadas ?

Infelizmente está confundindo todos.

Pra que modificar a pasta temporária do HBMK2 se é pra deixá-la misturada?
O ZIP também contém os lixos temporários, a pasta OBJMINGW com 39 arquivos lixo.

Até me perdi por um tempo, não tinha hbm na lista de pesquisas do meu editor de texto, e não encontrava aonde exigia a hwg_compat.ch

Quem estiver interessado em HWGUI, vai se assustar com esse exemplo e vai desistir.

Mas aproveitando, é por isso que eu digo: aprendam Harbour
Ajuda a não se complicar com exemplos... rs

Os erros de compilação é outra história... foi só o primeiro contato.... rs
Vai ser enxugar os arquivos de configuração, e enxugar a pasta primeiro.
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

Função para localizar um texto em um richedit

Mensagem por JoséQuintas »

Segue fonte atual e icones do preview de relatório.
Não tem ícone nenhum.

De acordo com esta linha do demo.hbp

P:\GERAL\HARBOUR\APP.RC

Tá tudo em outro lugar.... rs

E apesar de existir demo.rc na pasta, não é usado.

Nota: só organizando a configuração ainda, deixar num hbp o hbp, hbc e hbm... rs
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
asimoes
Colaborador
Colaborador
Mensagens: 4919
Registrado em: 26 Abr 2007 16:48
Localização: RIO DE JANEIRO-RJ

Função para localizar um texto em um richedit

Mensagem por asimoes »

Bom e primeiro lugar já estou arrependido em ter compartilhado meus projetos de testes, PQP pra quem reclama.

Outra coisa os icones estão na pasta AVI dentro do último zip que eu postei.

Vou parar de me aborrecer com isso FODA-SE
►Harbour 3.x | Minigui xx-x | HwGui◄
Pense nas possibilidades abstraia as dificuldades.
Não corrigir nossas falhas é o mesmo que cometer novos erros.
A imaginação é mais importante que o conhecimento. (Albert Einstein)
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Função para localizar um texto em um richedit

Mensagem por JoséQuintas »

Tem uma frase antiga, que vi num site e achei interessante, não lembro as palavras exatas, algo mais ou menos assim:
If you make anybody think they think, they will love you
but if you really make they think, they will rate you
Algo como:

Se você fizer alguém achar que está pensando, vão te amar
mas se realmente fizer alguém pensar, vão te odiar.

Se está achando ruim por ter feito um zip e postado, coisa de minutos, imagine horas tentando resolver os problemas.

Não sou eu que estou com problemas pra migrar pra hwgui 2.20
Poderia pelo menos demonstrar um pouco de interesse no que pode resolver seu problema.

Nem estou pensando em mim.
Estou pensando em todo esse pessoal querendo migrar pra lib gráfica, e tentando encontrar exemplos.
Apenas troque de posição:
E se fosse o contrário, você recebendo um projeto assim?

Mesmo assim, desculpe, peguei pesado....
Usei o intervalo de idas e vindas ao hospital, e isso não foi bom.
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

Função para localizar um texto em um richedit

Mensagem por JoséQuintas »

Quanto aos fontes, sem chance.
c:/temp/hbmk_lcubvp.dir/hhtml.o:hhtml.c:(.data+0x48): undefined reference to `HB_FUN_HB_SYMBOL_UNUSED'
Isso EXISTE no Harbour, e NÃO EXISTE nesse fonte.

Se não tem no fonte, não há que o que mexer no fonte.
Não faço nenhuma idéia do porque desse erro.
O erro é na linquedição.
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

Função para localizar um texto em um richedit

Mensagem por JoséQuintas »

E pra confundir mais ainda: compilando o fonte sozinho não dá falta de nada
d:\temp\hpreview>hbmk2 hhtml hwgui.hbc
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing configuration: d:\harbour\bin\hbmk.hbc
Harbour 3.4.0dev (5bb5f8cb04) (2017-04-08 11:17)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'hhtml.prg'...
Lines 4568, Functions/Procedures 6
Generating C source output to 'c:\temp\hbmk_mwzxq5.dir\hhtml.c'... Done.
Compiling 'd:\cvsfiles\allgui\allgui\errorsys.prg'...
Lines 540, Functions/Procedures 5
Generating C source output to 'c:\temp\hbmk_mwzxq5.dir\errorsys.c'... Done.
Compiling 'd:\cvsfiles\allgui\allgui\allgui.prg'...
Lines 6, Functions/Procedures 1
Generating C source output to 'c:\temp\hbmk_mwzxq5.dir\allgui.c'... Done.
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2013
UPX 3.91w Markus Oberhumer, Laszlo Molnar & John Reiser Sep 30th 2013

File size Ratio Format Name
-------------------- ------ ----------- -----------
1179136 -> 438784 37.21% win32/pe hhtml.exe

Packed 1 file.
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

Função para localizar um texto em um richedit

Mensagem por JoséQuintas »

Agora então, confundiu geral.

Primeiro demo.prg, depois hhtml.prg
demo.prg
#teste.prg
hhtml.prg
#tstrectangle.prg
#ze_rmchart.prg
#msgoptions.prg
#errorsys.prg
#messagebox.prg
#menuto.prg
#procgui.prg
#restaurawvt.prg
#mrprint.prg
#_winmisc.cpp

-odemo

hwgui.hbc
xhb.hbc
d:\temp\hpreview>hbmk2 demo hwgui.hbc
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing configuration: d:\harbour\bin\hbmk.hbc
Harbour 3.4.0dev (5bb5f8cb04) (2017-04-08 11:17)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'demo.prg'...
Lines 8338, Functions/Procedures 21
Generating C source output to 'c:\temp\hbmk_km1fxo.dir\demo.c'... Done.
Compiling 'hhtml.prg'...
Lines 4568, Functions/Procedures 6
Generating C source output to 'c:\temp\hbmk_km1fxo.dir\hhtml.c'... Done.
Compiling 'd:\cvsfiles\allgui\allgui\errorsys.prg'...
Lines 540, Functions/Procedures 5
Generating C source output to 'c:\temp\hbmk_km1fxo.dir\errorsys.c'... Done.
Compiling 'd:\cvsfiles\allgui\allgui\allgui.prg'...
Lines 6, Functions/Procedures 1
Generating C source output to 'c:\temp\hbmk_km1fxo.dir\allgui.c'... Done.
c:/temp/hbmk_km1fxo.dir/demo.o:demo.c:(.data+0x2c8): undefined reference to `HB_FUN_MSGOPTIONS'
c:/temp/hbmk_km1fxo.dir/demo.o:demo.c:(.data+0x688): undefined reference to `HB_FUN_MENSAGEMTIMEOUT'
c:/temp/hbmk_km1fxo.dir/demo.o:demo.c:(.data+0x6f8): undefined reference to `HB_FUN_HWG_RGB'
c:/temp/hbmk_km1fxo.dir/demo.o:demo.c:(.data+0x818): undefined reference to `HB_FUN_VIEWREPORT'
c:/temp/hbmk_km1fxo.dir/demo.o:demo.c:(.data+0xc48): undefined reference to `HB_FUN_GETTEXTWIDTH'
c:/temp/hbmk_km1fxo.dir/demo.o:demo.c:(.data+0xdd8): undefined reference to `HB_FUN_HB_MEMIO'
c:/temp/hbmk_km1fxo.dir/hhtml.o:hhtml.c:(.data+0x48): undefined reference to `HB_FUN_HB_SYMBOL_UNUSED'
collect2.exe: error: ld returned 1 exit status
hbmk2 [demo]: Error: Running linker. 1
gcc.exe c:/temp/hbmk_km1fxo.dir/demo.o c:/temp/hbmk_km1fxo.dir/hhtml.o c:/temp/hbmk_km1fxo.dir/errorsys.o c:/temp/hbmk_km1fxo.dir/allgui.o c:/temp/hbmk_km1fxo.dir/hbmk_3dfd7s.o -m32 -mwindows -Wl,--start-group -lhwgui -lmsvfw32 -lvfw32 -lhbmisc -lhbnf -lhbziparc -lhbmzip -lminizip -lhbhpdf -lhpdf -lpng -lhbct -lgtwvg -lhbwin -lxhb -lhbtip -lhbfship -lhbxpp -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtstd -lgtpca -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -s -odemo.exe -Ld:/harbour/lib/win/mingw -Ld:/cvsfiles/allgui/allgui -Ld:/cvsfiles/allgui/lib/win/mingw

hbmk2: Hint: Add input file 'hbmemio.hbc' for missing Harbour function(s):
HB_MEMIO()
hbmk2: Error: Referenced, missing, but unrecognized Harbour function(s):
MSGOPTIONS(), MENSAGEMTIMEOUT(), HWG_RGB(), VIEWREPORT(),
GETTEXTWIDTH(), HB_SYMBOL_UNUSED()
hbmk2: Hint: Add input file 'gtwvg.hbc' instead of specifying raw library using
'-lgtwvg' or 'libs=gtwvg'.
primeiro hhtml.prg, depois demo.prg
hhtml.prg
demo.prg
#teste.prg
#tstrectangle.prg
#ze_rmchart.prg
#msgoptions.prg
#errorsys.prg
#messagebox.prg
#menuto.prg
#procgui.prg
#restaurawvt.prg
#mrprint.prg
#_winmisc.cpp

-odemo

hwgui.hbc
xhb.hbc
d:\temp\hpreview>hbmk2 demo hwgui.hbc
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing configuration: d:\harbour\bin\hbmk.hbc
Harbour 3.4.0dev (5bb5f8cb04) (2017-04-08 11:17)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'hhtml.prg'...
Lines 4568, Functions/Procedures 6
Generating C source output to 'c:\temp\hbmk_1c47l0.dir\hhtml.c'... Done.
Compiling 'demo.prg'...
Lines 8338, Functions/Procedures 21
Generating C source output to 'c:\temp\hbmk_1c47l0.dir\demo.c'... Done.
Compiling 'd:\cvsfiles\allgui\allgui\errorsys.prg'...
Lines 540, Functions/Procedures 5
Generating C source output to 'c:\temp\hbmk_1c47l0.dir\errorsys.c'... Done.
Compiling 'd:\cvsfiles\allgui\allgui\allgui.prg'...
Lines 6, Functions/Procedures 1
Generating C source output to 'c:\temp\hbmk_1c47l0.dir\allgui.c'... Done.
c:/temp/hbmk_1c47l0.dir/demo.o:demo.c:(.data+0x2c8): undefined reference to `HB_FUN_MSGOPTIONS'
c:/temp/hbmk_1c47l0.dir/demo.o:demo.c:(.data+0x688): undefined reference to `HB_FUN_MENSAGEMTIMEOUT'
c:/temp/hbmk_1c47l0.dir/demo.o:demo.c:(.data+0x6f8): undefined reference to `HB_FUN_HWG_RGB'
c:/temp/hbmk_1c47l0.dir/demo.o:demo.c:(.data+0x818): undefined reference to `HB_FUN_VIEWREPORT'
c:/temp/hbmk_1c47l0.dir/demo.o:demo.c:(.data+0xc48): undefined reference to `HB_FUN_GETTEXTWIDTH'
c:/temp/hbmk_1c47l0.dir/demo.o:demo.c:(.data+0xdd8): undefined reference to `HB_FUN_HB_MEMIO'
collect2.exe: error: ld returned 1 exit status
hbmk2 [demo]: Error: Running linker. 1
gcc.exe c:/temp/hbmk_1c47l0.dir/hhtml.o c:/temp/hbmk_1c47l0.dir/demo.o c:/temp/hbmk_1c47l0.dir/errorsys.o c:/temp/hbmk_1c47l0.dir/allgui.o c:/temp/hbmk_1c47l0.dir/hbmk_0tg988.o -m32 -mwindows -Wl,--start-group -lhwgui -lmsvfw32 -lvfw32 -lhbmisc -lhbnf -lhbziparc -lhbmzip -lminizip -lhbhpdf -lhpdf -lpng -lhbct -lgtwvg -lhbwin -lxhb -lhbtip -lhbfship -lhbxpp -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtstd -lgtpca -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -s -odemo.exe -Ld:/harbour/lib/win/mingw -Ld:/cvsfiles/allgui/allgui -Ld:/cvsfiles/allgui/lib/win/mingw

hbmk2: Hint: Add input file 'hbmemio.hbc' for missing Harbour function(s):
HB_MEMIO()
hbmk2: Error: Referenced, missing, but unrecognized Harbour function(s):
MSGOPTIONS(), MENSAGEMTIMEOUT(), HWG_RGB(), VIEWREPORT(), GETTEXTWIDTH()
hbmk2: Hint: Add input file 'gtwvg.hbc' instead of specifying raw library using
'-lgtwvg' or 'libs=gtwvg'.
A ordem dos fontes alterou o resultado.
Com demo.prg em primeiro, dá falta de HB_SYMBOL_UNUSED() em hhtml.
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

Função para localizar um texto em um richedit

Mensagem por JoséQuintas »

Isso gerou até report de erro.

https://github.com/vszakats/harbour-core/issues/291

Numa versão bem enxuta pra quem quiser confirmar:
//demo.prg
#include "std.ch"
FUNCTION MAIN
RETURN Nil
//hhtml.prg
#include "hbclass.ch"
CREATE CLASS HHtml
DATA oParent
ENDCLASS
d:\temp\test>hbmk2 demo.prg hhtml.prg
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing configuration: d:\harbour\bin\hbmk.hbc
Harbour 3.4.0dev (5bb5f8cb04) (2017-04-08 11:17)
Copyright (c) 1999-2017, https://github.com/JoseQuintas/harbour-core/
Compiling 'demo.prg'...
Lines 839, Functions/Procedures 1
Generating C source output to 'c:\temp\hbmk_5io4mh.dir\demo.c'... Done.
Compiling 'hhtml.prg'...
Lines 719, Functions/Procedures 1
Generating C source output to 'c:\temp\hbmk_5io4mh.dir\hhtml.c'... Done.
c:/temp/hbmk_5io4mh.dir/hhtml.o:hhtml.c:(.data+0x48): undefined reference to `HB_FUN_HB_SYMBOL_UNUSED'
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/
Responder