Ainda estou programando com xHarbour, mas lentamente, nas horas vagas ("meio-vagas"...), faço testes. Agora resolvi fazer algo para valer.
Um pequeno aplicativo, rodando em background, para ler porta serial.
Estou usando a MiniGui 3.0.35 (Harbour 2.0.0 (r13372)). Optei por esta porque li em algum fórum que é a mais fácil para os iniciantes.
Navegando li texto do 'Przemek' tratando de comunicação serial que diz:
Pergunto: Esta versão da MiniGui x Harbour já dá suporte à comunicação serial nativa ?Please forget about HBCOMM.
This library was never working correctly.
Current HBCOMM in Harbour SVN is wrapper to native serial port support
in Harbour.
It should work but is not bug compatible with originalimplementation
so existing code has to be updated in some cases.
Instead of HBCOMM use native Harbour serial port functions which are
part of Harbour RTL.
Below is list of PRG level serial functions: HB_COM*().
You can also use COM_*() functions from HBCT library.
Both interfaces use the same low level C code from Harbour RTL and
they work on all platforms (DOS, Win, OS2, *nixes).
BTW This CT3 COM implementation is more completed then the commercial
one sold by xHarbour.com. It also works on all platforms.
best regards,
Przemek
Isto porque também li que esta LIB nativa só foi implementada à partir de determinada versão do Harbour, e não sei qual é...
Alguém pode mostrar o "caminho das pedras" ?
Algum colega possui a documentação das funções desta LIB ?
Eu tenho a lista das funções disponíveis, mas é só...
Fiz alguns testes com as funções de abertura da porta e dá erro:
Suponho que seja por falta de suporte da versão que estou usando...undefined reference to `HB_FUN_HB_COMINIT'
Sds.


