[fpc-pascal]New for Windows programming
klaus at mailserv.brain.uni-freiburg.de
Thu Oct 17 16:11:35 CEST 2002
> Another question is about accessing com port under windows.
> I have some turbo pascal DOS based programms that communicate with
> microcontrollers through PC serial port. What is the easyest way to get them
> working under Windows?
I have the same problem.
I found some demos on the web page (click in left row on "units"),
download elecom12, read file win32com.pas (Com_Open, Com_SendChar, ...)
Seems one must use an API call for initializing (SetCommState)
and provide callback functions for sending and receiving.
I think the Win32 API doc is also available somewhere on Free Pascal Web page.
Google Search for "SetCommState" also finds some info on e Microsoft web page.
Does somebody have a minimal demo source?
Klaus Hartnegg, Brain Research Group, University Freiburg, Germany
Hansa-strasse 9, D-79104 Freiburg, Tel: +49 (0)761 203 9514, Fax 9540
hartnegg at uni-freiburg.de www.brain.uni-freiburg.de/~klaus/
More information about the fpc-pascal