RE: Driving COM ports

new topic     » goto parent     » topic index » view thread      » older message » newer message

> -----Original Message-----

> OK, let's cut the laughs.  I program in Euphoria because it's 
> easy and I 
> can forget all the nausea of Windows C++ coding.  This lot 
> you recommend 
> does show how to make a simple teletype to demonstrate driving COM 
> ports. But the basic program is 2000 lines long, and you have the .rc 
> and .h and so on too. It would take me ages to convert that 
> to Euphoria, 
> and I would hardly be Euphoric doing it.  No, what I need is a EU 
> package to do it, nice and easy. Give it a port, baud, etc, and a 
> callback id for handlers to TXBE and RBF interrupts, is all I 
> need. When 
> I want to get back into C++ Windows coding I'll shoot myself first. 
> Thanks anyway.

I don't think anyone's done a lot of work on wrapping this for windows.  The
first thing I'd try (and I'm real shaky here) is simply using Eu's open() to
do stuff on the ports.  There was a discussion a bit ago about that (maybe
you were part of it).

Failing that, I'd recommend downloading the win32.hlp file off the archives,
and check out the Communications section in the contents.  You should be
able to do everything there.  It won't be as messy as the VC++ sample Bernie
directed you to, but you will have to do some interfacing with C (namely,
kernel32.dll).

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu