[fpc-pascal] DLL Linking

Pianoman pianoman at centrum.sk
Tue Jun 21 16:36:03 CEST 2005


            Hi everyone, I have one question: Is it possible to link a
Routine from DLL to my exe directly. Point is that I don't want distribute
other files with the program and it would be nice to have only one
executable nothing more.
I use Bass audio library for playback and I am interested if is it possible
to link it together with my application.
Thanx
Pianoman
----- Original Message -----
From: <fpc-pascal-request at lists.freepascal.org>
To: <fpc-pascal at lists.freepascal.org>
Sent: Tuesday, June 21, 2005 12:00 PM
Subject: fpc-pascal Digest, Vol 10, Issue 15


> Send fpc-pascal mailing list submissions to
> fpc-pascal at lists.freepascal.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> or, via email, send a message with subject or body 'help' to
> fpc-pascal-request at lists.freepascal.org
>
> You can reach the person managing the list at
> fpc-pascal-owner at lists.freepascal.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of fpc-pascal digest..."
>
>
> Today's Topics:
>
>    1. Re:  selecting target processor (Jonas Maebe)
>    2. Re:  selecting target processor (Eduardo)
>    3.  strange behaviour of readkey...or not (Darius Blaszijk)
>    4. Re:  strange behaviour of readkey...or not (Florian Klaempfl)
>    5. Re:  strange behaviour of readkey...or not (Darius Blaszijk)
>    6.  Freepascal Advocate Store (L505)
>    7.  Small project $ (Paul Aviles)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 20 Jun 2005 15:36:10 +0200
> From: Jonas Maebe <jonas.maebe at elis.ugent.be>
> Subject: Re: [fpc-pascal] selecting target processor
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <59DC62A3-75F4-4B69-A801-72239F6A7A69 at elis.ugent.be>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> On 20 jun 2005, at 09:59, Marc Santhoff wrote:
>
> > So it should work:
> >
> > I'm using "-dRELEASE" for releasing and my fpg.cfg has standard "-
> > OG2p3"
> > and "-Xs". Testing is done with "-XX -B".
>
> Yes, it should.
>
> >> Can you figure out which instruction it is that causes this?
> >
> > How would I do that? Would a saved core dump do? It seems to occur on
> > when redirecting stdout to a file, but I'm not sure yet.
>
> Normally, you'd do this by running the program under gdb and checking
> what the faulting instruction is. A coredump should contain the
> necessary information as well, yes.
>
>
> Jonas
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 20 Jun 2005 17:19:51 +0200
> From: Eduardo <nec556 at retena.com>
> Subject: Re: [fpc-pascal] selecting target processor
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <6.0.3.0.0.20050620171816.01d29ec0 at localhost>
> Content-Type: text/plain; charset="us-ascii"; format=flowed
>
> At 15:36 20/06/2005, you wrote:
>
> >On 20 jun 2005, at 09:59, Marc Santhoff wrote:
> >
> >>So it should work:
> >>
> >>I'm using "-dRELEASE" for releasing and my fpg.cfg has standard "-
OG2p3"
> >>and "-Xs". Testing is done with "-XX -B".
> >
> >Yes, it should.
> >
> >>>Can you figure out which instruction it is that causes this?
> >>
> >>How would I do that? Would a saved core dump do? It seems to occur on
> >>when redirecting stdout to a file, but I'm not sure yet.
> >
> >Normally, you'd do this by running the program under gdb and checking
> >what the faulting instruction is. A coredump should contain the
> >necessary information as well, yes.
>
> Are you using any dll or lib.so :? Perhaps the external code is compiled
> for a specific processor.
>
>
>
****************************************************************************
**********************************************************************
> This document represent my ideas. They are original from me. It's
forbidden
> think the same than me, without previous payment.
> If you agree me, PAY.
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 20 Jun 2005 19:34:10 +0200
> From: "Darius Blaszijk" <dhkblaszyk at zeelandnet.nl>
> Subject: [fpc-pascal] strange behaviour of readkey...or not
> To: <fpc-pascal at lists.freepascal.org>
> Message-ID: <003301c575be$449eeff0$3ef4ee3e at rewrrwr>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi there,
>
> I have a console app that reads keys being pressed and then does some
> action. In short it would be like this:
>
> repeat
>   if fileage(myfile) <> imyfile then
>   begin
>     writeln('file changed');
>     imyfile := fileage(myfile);
>   end;
>
>   ch := readkey;
> until ch = 'q'
>
> So what I want is that the fileage test is done continously and when a
user
> presses a key some other procedure is executed. But the problem is that
when
> "ch := readkey" is reached, the app seems to stay waiting until a key is
> pressed. In other words it only does the fileage test when I press a key
> other than q. In my example the fileage test is only done once.
>
> Am I under the wrong impression that I should pull it off using readkey??
> What is the alternative??
>
> Darius Blaszijk
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 20 Jun 2005 19:37:37 +0200
> From: Florian Klaempfl <F.Klaempfl at gmx.de>
> Subject: Re: [fpc-pascal] strange behaviour of readkey...or not
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <42B6FEE1.6040101 at gmx.de>
> Content-Type: text/plain; charset=us-ascii
>
> Darius Blaszijk wrote:
>
> > Hi there,
> >
> > I have a console app that reads keys being pressed and then does some
> > action. In short it would be like this:
> >
> > repeat
> >   if fileage(myfile) <> imyfile then
> >   begin
> >     writeln('file changed');
> >     imyfile := fileage(myfile);
> >   end;
> >
> >   ch := readkey;
> > until ch = 'q'
> >
> > So what I want is that the fileage test is done continously and when a
user
> > presses a key some other procedure is executed. But the problem is that
when
> > "ch := readkey" is reached, the app seems to stay waiting until a key is
> > pressed. In other words it only does the fileage test when I press a key
> > other than q. In my example the fileage test is only done once.
> >
> > Am I under the wrong impression that I should pull it off using
readkey??
> > What is the alternative??
>
> Do check of keypressed first:
> http://www.freepascal.org/docs-html/rtl/crt/keypressed.html
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 20 Jun 2005 19:48:45 +0200
> From: "Darius Blaszijk" <dhkblaszyk at zeelandnet.nl>
> Subject: Re: [fpc-pascal] strange behaviour of readkey...or not
> To: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
> Message-ID: <006501c575c0$4e6db370$3ef4ee3e at rewrrwr>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Florian,
>
> Thanks. I have fixed it using:
>
>     if KeyPressed then
>       ch := ReadKey
>     else
>       ch := '';
>
> I know I should have know better, but for some strange reason only readkey
> in a previous version seemed to work just fine. Thats why I was confused.
>
> Darius Blaszijk
>
> ----- Original Message -----
> From: "Florian Klaempfl" <F.Klaempfl at gmx.de>
> To: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
> Sent: Monday, June 20, 2005 7:37 PM
> Subject: Re: [fpc-pascal] strange behaviour of readkey...or not
>
>
> > Darius Blaszijk wrote:
> >
> > > Hi there,
> > >
> > > I have a console app that reads keys being pressed and then does some
> > > action. In short it would be like this:
> > >
> > > repeat
> > >   if fileage(myfile) <> imyfile then
> > >   begin
> > >     writeln('file changed');
> > >     imyfile := fileage(myfile);
> > >   end;
> > >
> > >   ch := readkey;
> > > until ch = 'q'
> > >
> > > So what I want is that the fileage test is done continously and when a
> user
> > > presses a key some other procedure is executed. But the problem is
that
> when
> > > "ch := readkey" is reached, the app seems to stay waiting until a key
is
> > > pressed. In other words it only does the fileage test when I press a
key
> > > other than q. In my example the fileage test is only done once.
> > >
> > > Am I under the wrong impression that I should pull it off using
> readkey??
> > > What is the alternative??
> >
> > Do check of keypressed first:
> > http://www.freepascal.org/docs-html/rtl/crt/keypressed.html
> >
> > _______________________________________________
> > fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 20 Jun 2005 12:38:35 -0700
> From: L505 <fpc505 at z505.com>
> Subject: [fpc-pascal] Freepascal Advocate Store
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <006901c575cf$a76596a0$0200a8c0 at l1>
> Content-Type: text/plain; charset=iso-8859-1
>
> Are there any I Love Freepascal t-shirts, hats, coffee mugs, etc.?
>
> Love,
> Lars
>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 20 Jun 2005 22:56:30 -0400
> From: "Paul Aviles" <paul.aviles at palei.com>
> Subject: [fpc-pascal] Small project $
> To: <fpc-pascal at lists.freepascal.org>
> Message-ID: <001201c5760c$d6887780$9b24050a at avilespaxp>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> reply-type=original
>
> Basically a way to enable a web version of tail -f for log files. There is
a
> java version but we don't want the dependencies associated with java
there.
> Please contact me directly if anyone is interested on doing this.
>
> Regards,
>
> Paul
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
> End of fpc-pascal Digest, Vol 10, Issue 15
> ******************************************
>
>
> __________ Informacia od NOD32 1.1146 (20050620) __________
>
> Tato sprava bola preverena antivirusovym systemom NOD32.
> http://www.eset.sk
>
>





More information about the fpc-pascal mailing list