* * *

Author Topic: how to use the MSComm32.OCX with lazarus?  (Read 266 times)

greenzyzyzy

  • Full Member
  • ***
  • Posts: 170
how to use the MSComm32.OCX with lazarus?
« on: August 11, 2017, 12:17:30 pm »
how to use the MSComm32.OCX with lazarus?
just import the MSComm32.OCX library to lazarus.
but click the "active" property it show errors.but in delphi is no problem.
i do not know why.

mig-31

  • Full Member
  • ***
  • Posts: 217
Re: how to use the MSComm32.OCX with lazarus?
« Reply #1 on: August 11, 2017, 12:43:01 pm »
Use TBlockSerial class from SynaSer unit from Synapse package
instead of OLE Windows library
Lazarus 1.6 - Linux 32/64 bit, win32

avra

  • Hero Member
  • *****
  • Posts: 1063
    • Additional info
Re: how to use the MSComm32.OCX with lazarus?
« Reply #2 on: August 11, 2017, 12:46:36 pm »
If you still face problems then take a look at alternatives for serial communication here:
http://wiki.freepascal.org/Hardware_Access#Serial_Communication
ct2laz - Easily convert components and projects between Lazarus and CodeTyphon

greenzyzyzy

  • Full Member
  • ***
  • Posts: 170
Re: how to use the MSComm32.OCX with lazarus?
« Reply #3 on: August 17, 2017, 01:44:36 pm »
thanks all.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus