hbcomm how to use in HMG

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
metron9
Posts: 45
Joined: Sat Sep 08, 2012 7:18 am
Location: Minnesota U.S.A.

hbcomm how to use in HMG

Post by metron9 »

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...
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: hbcomm how to use in HMG

Post by Carlos Britos »

metron9 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...
HI
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)
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: hbcomm how to use in HMG

Post by mol »

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
Post Reply