A few years ago I know i was playing with com ports. I was using sample code that had a gui interface that would test com ports 1 through 10 and verify if they existed. I remember it was hbcomm functions, but I can't find that actual program sample.
I did find some code that will open a com port I can compile with harbour using hbmk2 test. I have attached the code here it is from hb32\contrib\hbcomm\tests\test.prg
I don't see any Include files in that code. What do I need to do to use functions like
INIT_PORT( cCom, nBaudeRate, nDatabits, nParity, nStopbit, nBuff )
In my HMG files.
I can't seem to find where INIT_PORT is defined.
I get confused with all the different versions of harbour, minigui, extended mini gui etc...
hbcomm how to use in HMG
Moderator: Rathinagiri
-
Carlos Britos
- Posts: 245
- Joined: Sat Aug 02, 2008 5:03 pm
Re: hbcomm how to use in HMG
HImetron9 wrote:A few years ago I know i was playing with com ports. I was using sample code that had a gui interface that would test com ports 1 through 10 and verify if they existed. I remember it was hbcomm functions, but I can't find that actual program sample.
I did find some code that will open a com port I can compile with harbour using hbmk2 test. I have attached the code here it is from hb32\contrib\hbcomm\tests\test.prg
I don't see any Include files in that code. What do I need to do to use functions like
INIT_PORT( cCom, nBaudeRate, nDatabits, nParity, nStopbit, nBuff )
In my HMG files.
I can't seem to find where INIT_PORT is defined.
I get confused with all the different versions of harbour, minigui, extended mini gui etc...
HMG and MiniGUI Extended are GUI libs for harbour, HmgForum is the site for HMG (official). The Hmg Extended is a branch of hmg ( long story )
The code of the lib hbcomm is in the SVN ..\harbour\contrib\hbcomm folder, maybe there you can find something that helps you.
Regards/Saludos, Carlos (bcd12a)
Re: hbcomm how to use in HMG
try to search our forum for detecting com ports. That was working sample, in win xp OK, but I had problems with win7.
About whole communication via com port - I'll attach my procedures for communication when I'll be at computer
About whole communication via com port - I'll attach my procedures for communication when I'll be at computer