32 bit application on 64 bit windows 7

  • Hi people!

    I use Delphi XE on WinXP-SP3 with CPort ver.4.11f (the latest).

    my application is working fine under windows xp 32 bit and windows 7 32 bit.
    but on windows 7 64 bit when trying to opening the com port it raise error "setupcomm function failed (Error : 1)"
    UAC is disabled.

    when debugging it stops in Cport.pas in procedure TCustomComPort.ApplyBuffer on line "if not SetupComm(FHandle, FBuffer.InputSize, FBuffer.OutputSize) then"

    can some one suggest any solution to this problem