Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
including units in free pascal Posted by simonborn on 24 Nov 2002 at 6:53 AM
hi.

i am trying to include a downloaded unit into free pascal. whatever the directory of the unit or whether i use a default .ppu or compile a .pp unit and then try ot use it, it doesn't work.

can someone give me a "beginner's guide to including units"? i used tp before, but am new to fp.

regards
simon born
Report
Re: including units in free pascal Posted by Manning on 24 Nov 2002 at 10:36 AM
: hi.
:
: i am trying to include a downloaded unit into free pascal. whatever the directory of the unit or whether i use a default .ppu or compile a .pp unit and then try ot use it, it doesn't work.
:
: can someone give me a "beginner's guide to including units"? i used tp before, but am new to fp.

If the unit came in source form, it should work just fine so long as the directory you placed the unit into is in the Include Directory in the compiler options.

If the unit came in compiled form, youre out of luck unfortunately. Compiled units can only be used with the compiler they were created with.
Report
Re: including units in free pascal Posted by simonborn on 24 Nov 2002 at 5:17 PM
thanks very much for the help.

found it and am able to use the unit.

regards
simon born

p.s.: does someone know a keyboard unit for fp that allows asking whether a key is pressed directly (w/o keypressed)? the one from freepascal.org does not work (error:direct assembler not allowed).
Report
Re: including units in free pascal Posted by cybersurfer on 1 Dec 2002 at 10:43 PM
: : hi.
: :
: : i am trying to include a downloaded unit into free pascal. whatever the directory of the unit or whether i use a default .ppu or compile a .pp unit and then try ot use it, it doesn't work.
: :
: : can someone give me a "beginner's guide to including units"? i used tp before, but am new to fp.
:
: If the unit came in source form, it should work just fine so long as the directory you placed the unit into is in the Include Directory in the compiler options.
:
: If the unit came in compiled form, youre out of luck unfortunately. Compiled units can only be used with the compiler they were created with.
:

cybersurfer
> the units may not be workin because of the wrong directory, u should have a folder called units, u can try to copy and paste all the units that u have from the the units folder into the Bin folder. that should work , it worked for me !




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.