[fpc-pascal] Re: KeyPressed
Eduardo
nec556 at retena.com
Mon Aug 22 22:11:52 CEST 2005
At 21:45 22/08/2005, you wrote:
>On Mon, 22 Aug 2005, Lowell C. Savage wrote:
>
> >
> > Some, perhaps....I ran into this problem when I was still compiling the
> > program as a pure Pascal program. (I had the interfaces to other languages
> > commented out.)
> >
> > I'm using: CRT, IO, DOS, Video, Printer, Graph, and Drivers.
>
>This is the problem. You can't use the Drivers, CRT and Video unit together.
>Each of them tries to catch keystrokes, and they will randomly receive them.
>(depending on thread usage).
>
>You should use only Video or only CRT or only Drivers
>(though it can be that drivers and video work together)
>
> > It's only one or
> > two modules that need Video, Printer, Graph and Drivers (not
> necessarily the
> > same ones). But, of course when it all gets linked together, you only need
> > one reference to cause trouble, right?
> >
> > And I don't care about multi-platform, so the C library DLL looks kind
> of like
> > the way to go.
>
>It will still cause problems, because the C library also will interfere
>with the
>Video and CRT units...
>
>It's planned to base the CRT unit on the video unit (so they would work
>together),
>but until now no-one had time.
>
>Michael.
I remember you can call any function/procedure/var/type/etc in a specific
unit using unitname:functionname so call Drivers:Keypressed or
CRT:Keypressed or Vide:Keypressed.
But perhaps i remember wrong.
------------------------------------------------------------
Alien.org contacted... waiting for Ripley
More information about the fpc-pascal
mailing list