WHAT32 DO HARBOUR

Projeto [x]Harbour - Compilador de código aberto compatível com o Clipper.

Moderador: Moderadores

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

WHAT32 DO HARBOUR

Mensagem por asimoes »

Senhores,

Onde eu acho a versão what32 do harbour?
►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
sygecom
Administrador
Administrador
Mensagens: 7131
Registrado em: 21 Jul 2006 10:12
Localização: Alvorada-RS
Contato:

Re: WHAT32 DO HARBOUR

Mensagem por sygecom »

Alguma coisa você encontra na: hbwin.lib, quais funções da WHAT32.LIB você usa ?
Leonardo Machado
xHarbour.org + Hwgui + PostgreSql
Avatar do usuário
asimoes
Colaborador
Colaborador
Mensagens: 4919
Registrado em: 26 Abr 2007 16:48
Localização: RIO DE JANEIRO-RJ

Re: WHAT32 DO HARBOUR

Mensagem por asimoes »

Olá,

Por exemplo:

#define _BARRA_DOS_WINDOWS_ "\"

If (Empty(CreateMutex( , .T., Strtran(GetModuleFileName(),_BARRA_DOS_WINDOWS_,'_') )) .Or. (GetLastError() > 0 ) )
Info('NÆo ‚ poss¡vel executar o programa mais de uma vez!')
__Quit()
EndIf

Sygecom, isto eu já tenho funcionando no xharbour e gostaria de manter com o harbour.
►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
sygecom
Administrador
Administrador
Mensagens: 7131
Registrado em: 21 Jul 2006 10:12
Localização: Alvorada-RS
Contato:

Re: WHAT32 DO HARBOUR

Mensagem por sygecom »

Pior que essas não tenho, já tentou pegar os arquivos .C da what32 e compilar junto com seu aplicativo ?
Leonardo Machado
xHarbour.org + Hwgui + PostgreSql
toninhofwi
Usuário Nível 1
Usuário Nível 1
Mensagens: 31
Registrado em: 23 Set 2009 22:35
Localização: Catanduva-SP

Re: WHAT32 DO HARBOUR

Mensagem por toninhofwi »

Olá, esta lib foi descontinuada no Harbour:

2009-07-11 09:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* examples/hbwhat
- hbwhat deleted as planned. It no longer builds without
investing more work into it (besides its other known problems).


O que você pode fazer é reunir todas as funções que precisa em um arquivo .C e recompilar.


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

Re: WHAT32 DO HARBOUR

Mensagem por asimoes »

Toninho,

Isso é o que eu mais temo, por exemplo eu uso a addfontresource, montar a what32, só acho que os caras (cabeças deste projeto harbour) precisam pensar melhor nos impactos de remover uma lib. Nesta versão 2.0.x muitas funções trocaram de nome isso pode gerar um problema na atualização de versão ou manutenção de um sistema.
Peguei um sistema grande pra converter e estou com receios.

Eu criei um hbm pra gerar o exe e acertei as incompatibilidades IN,LIKE etc.
Ficou então as funções pra resolver:

DISKREADY (É DA LIB CT QUE NÃO ESTÁ NA LIB HBCT.LIB)
TURL
TIPCLIENTPOP
TIPMAIL
TIP_TIMESTAMP
TIPCLIENTSMTP
ADDFONTRESOURCE
REMOVEFONTRESOURCE

Pergunta: Como vocês adaptaram para o harbour estas funções?
►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
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7929
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Re: WHAT32 DO HARBOUR

Mensagem por Itamar M. Lins Jr. »

TURL
TIPCLIENTPOP
TIPMAIL
TIP_TIMESTAMP
TIPCLIENTSMTP
Estas existem, e foram corrigidos muitos problemas e adicionado coisas importantes.
Inclusive trabalha agora com SSL. Para usar com gmail por exemplo.
- contrib/hbwhat32
+ contrib/hbwhat
* Renamed to not contain '32'.
INCOMPATIBLE.
; NOTE: I plan to do this with a couple of other
names too in the future.

* contrib/hbwhat/Makefile
* contrib/hbwhat/common.mak
- contrib/hbwhat/what32.ch
+ contrib/hbwhat/hbwhat.ch
* Renamed what32.ch to not contain '32' (and added
hb for consistency if it got renamed anyway).
INCOMPATIBLE.
2008-09-09 21:54 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwhat32/hbwhat.h
* contrib/hbwhat32/whtcall.c
* contrib/hbwhat32/whtclpb.c
* contrib/hbwhat32/whtcomm.c
* contrib/hbwhat32/whtdll.c
* contrib/hbwhat32/whtgdi.c
* contrib/hbwhat32/whtilst.c
* contrib/hbwhat32/whtinet.c
* contrib/hbwhat32/whtini.c
* contrib/hbwhat32/whtmisc.c
* contrib/hbwhat32/whtmmcap.c
* contrib/hbwhat32/whtmsg.c
* contrib/hbwhat32/whtsock.c
* contrib/hbwhat32/whtsys.c
* contrib/hbwhat32/whttab.c
* contrib/hbwhat32/whttree.c
* contrib/hbwhat32/whtwnd.c
* contrib/hbwhat32/wincorec.c
! Fixed remaining 64-bit problems.
! Fixed to work as before, using numbers for pointers.
! Fixed bugs in these internet related functions:
INTERNETREADFILE(), INTERNETWRITEFILE()
; NOTE: Number of warnings went down from somewhere well
above a thousand to just a few ones, mostly common
in other parts of Harbour. If someone could help to
clear these remains, it'd be great.
Tested with MSVS2008 -W4 64/32-bit modes, BCC 5.8,
MinGW 4.31.
; NOTE: I didn't do any real-life tests. Pls do if you're
interested or you're using this contrib.
; NOTE: Remaining warnings:
- MSVS 2008 -W4 64-bit:
wincorec.c(689) : warning C4244: 'argument' : conversion from 'HB_PTRDIFF' to 'ULONG', possible loss of data
whtclpb.c(208) : warning C4244: 'argument' : conversion from 'SIZE_T' to 'ULONG', possible loss of data
whtdll.c(298) : warning C4311: 'type cast' : pointer truncation from 'LPSTR' to 'DWORD'
whtdll.c(299) : warning C4311: 'type cast' : pointer truncation from 'char *' to 'DWORD'
whtdll.c(306) : warning C4311: 'type cast' : pointer truncation from 'char *' to 'DWORD'
whtlv.c(84) : warning C4267: 'argument' : conversion from 'size_t' to 'ULONG', possible loss of data
whtlv.c(109) : warning C4267: 'argument' : conversion from 'size_t' to 'ULONG', possible loss of data
whtmem.c(243) : warning C4244: 'argument' : conversion from 'SIZE_T' to 'int', possible loss of data
whtmem.c(270) : warning C4244: 'argument' : conversion from 'SIZE_T' to 'int', possible loss of data
whtmem.c(279) : warning C4244: 'argument' : conversion from 'SIZE_T' to 'int', possible loss of data
whtreg.c(171) : warning C4267: 'argument' : conversion from 'size_t' to 'DWORD', possible loss of data
whtshell.c(34) : warning C4267: 'argument' : conversion from 'size_t' to 'ULONG', possible loss of data
whtsys.c(1093) : warning C4244: 'argument' : conversion from 'SIZE_T' to 'int', possible loss of data
whttext.c(127) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
whttext.c(154) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
whttext.c(190) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
whttext.c(246) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
whttext.c(299) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data

- MSVS 2008 -W4 32-bit:
wincorec.c(434) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(438) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(442) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(446) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(450) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(454) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(458) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(462) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(466) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(470) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(486) : warning C4152: nonstandard extension, function/data pointer conversion in expression
wincorec.c(529) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'DLGPROC'
wincorec.c(543) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'DLGPROC'
wincorec.c(556) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'DLGPROC'
wincorec.c(569) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'DLGPROC'
whtsys.c(316) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'TIMERPROC'
whtwnd.c(197) : warning C4055: 'type cast' : from data pointer 'void *' to function pointer 'WNDPROC'

- MinGW 4.31 32-bit:
wincorec.c:94: warning: signed and unsigned type in conditional expression
wincorec.c:95: warning: signed and unsigned type in conditional expression
wincorec.c:96: warning: signed and unsigned type in conditional expression
wincorec.c:97: warning: signed and unsigned type in conditional expression
wincorec.c:119: warning: signed and unsigned type in conditional expression
wincorec.c:120: warning: signed and unsigned type in conditional expression
wincorec.c:121: warning: signed and unsigned type in conditional expression
wincorec.c:122: warning: signed and unsigned type in conditional expression
whtcdlg.c:180: warning: signed and unsigned type in conditional expression
whtdate.c:61: warning: passing argument 1 of 'hb_retptr' makes pointer from integer without a cast
whtdlg.c:169: warning: signed and unsigned type in conditional expression
whtmisc.c:95: warning: signed and unsigned type in conditional expression
whtmisc.c:349: warning: signed and unsigned type in conditional expression
whtseria.c:343: warning: signed and unsigned type in conditional expression
whtsock.c:43: warning: signed and unsigned type in conditional expression
whtsock.c:108: warning: signed and unsigned type in conditional expression
whtsock.c:124: warning: signed and unsigned type in conditional expression
whtsock.c:226: warning: signed and unsigned type in conditional expression
whtsock.c:246: warning: signed and unsigned type in conditional expression
whtsock.c:249: warning: signed and unsigned type in conditional expression
whtsock.c:318: warning: signed and unsigned type in conditional expression
whtsock.c:331: warning: signed and unsigned type in conditional expression
whtsock.c:338: warning: signed and unsigned type in conditional expression
whtsys.c:1091: warning: comparison between signed and unsigned

2008-09-09 13:14 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwhat32/whthead.c
* contrib/hbwhat32/whtmmcap.c
* contrib/hbwhat32/whtshell.c
* contrib/hbwhat32/whtdir.c
! Fixed a few problems when compiling with MinGW.

* contrib/Makefile
* contrib/make_b32_all.bat
* contrib/make_gcc_all.sh
* contrib/make_vc_all.bat
+ Readded hbwhat32 to default build lists.
; This doesn't mean this lib works, but the amount of
warnings are now on a manageable level on both 32 and
64 bit on BCC/MSVC/MINGW, we can gradually fix the
remaining ones, and maybe if we have this lib
built, someone will try to use it and maybe fix it.
[ We may temply as well disable it again, if it turns
out to be a showstopper for 1.0.1 release. ]
; If there is anything against the above, I'd suggest
to remove the whole contrib altogether.
Atenção às data das correções.

Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
asimoes
Colaborador
Colaborador
Mensagens: 4919
Registrado em: 26 Abr 2007 16:48
Localização: RIO DE JANEIRO-RJ

Re: WHAT32 DO HARBOUR

Mensagem por asimoes »

Itamar,

Desculpe mas quais foram as substituições?
►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
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7929
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Re: WHAT32 DO HARBOUR

Mensagem por Itamar M. Lins Jr. »

? Não entendi :-(

As funções, TIP existem no Harbour.
As outras eu não sei porque eu não as uso.
Se forem do what32 leia o Changelog somente a parte das modificações desta lib para vc entender.

Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
sygecom
Administrador
Administrador
Mensagens: 7131
Registrado em: 21 Jul 2006 10:12
Localização: Alvorada-RS
Contato:

Re: WHAT32 DO HARBOUR

Mensagem por sygecom »

Olá Asimoes,
Ficou então as funções pra resolver:
Pergunta: Como vocês adaptaram para o harbour estas funções?
DISKREADY (É DA LIB CT QUE NÃO ESTÁ NA LIB HBCT.LIB)
viewtopic.php?f=4&t=9695&hilit=DISKREADY&start=15
TURL
TIPCLIENTPOP
TIPMAIL
TIP_TIMESTAMP
TIPCLIENTSMTP
Ambas está já na TIP do Harbour, uso quase todas apenas dessa lista não uso a: TIP_TIMESTAMP, mas se não tiver poste que tentaremos ver como contornar o falta.
ADDFONTRESOURCE
REMOVEFONTRESOURCE
Tente adicionar o _winfont.c diretamente no seu projeto, talvez resolva.
Leonardo Machado
xHarbour.org + Hwgui + PostgreSql
Responder