Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-07

Help needed: How do I install the attached component?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Williams

Hi All,

I'm trying to install the attached component (intex.pas).

I have created a package and added the unit "intex.pas" to it. When I compile it I get this error:

/home/user/.wine/drive_c/pew_ink/Games/Frog/Delphi_source_code/Frog/Lazarus_1.4_alpha/intex.pas(41,43) Fatal: Can't find unit WinTypes used by intex

From the "intex.pas" file:
uses WinTypes, WinProcs, SysUtils, Classes;

Note: I realize that this is old source code. I'd be quite happy to settle for a modern component which does the same thing.

From the file "intex.pas"
// ******************************************************************
//   TInTex v1.0
//   TInTex is a string holder designed to hold text inside the exe
//   file for use during run time.  There are other methods of
//   achieving a similar result but TInTex is simple to use and
//   understand, small and does a little more than just hold strings!
//   Text is held in a strings object and can be simply a single line
//   or a whole text file.
//   TInTex.Strings has all the methods of TStrings so can be to some
//   extent searched, read from and written to and the strings
//   manipulated or deleted. See TStrings help for more information.
//   Text can be broken into sections, each identified by a heading
//   in the format "[heading]".  Each section can be text or in the
//   same format as an INI file.  Each section can be individually
//   retrieved; useful for loading text into boxes or lists and
//   messages. You can also retrieve a single value, section values or
//   section names if in the format Name=Value and section headings.
//   TInTex can contain a combination of both formats but each section
//   must have a heading.
//   Text is loaded at design time using the string List Editor and
//   saved with the exe.
//   You can add strings at run time but they will not be saved when
//   the exe closes nor will any manipulation of strings.  You can
//   save the contents to a file or stream and load from a file or
//   stream .....  and more, try it.
//   This code is FREEWARE and you can do with it what you will.
//   If you have any suggestions to improve or enhance the code,
//   please let me know.
//
//   FileName: Intex.pas (TInTex v1.0)
//   Author: Brian Shepherd
//   Date: 18/07/99
//   email:
//
// ******************************************************************
unit intex;
interface
uses WinTypes, WinProcs, SysUtils, Classes;

[snip]

Regards,
PEW

Fond Regards, Peter Eric (aka 'pew') WILLIAMS My free website is: http://pewtas.googlepages.com (or) http://tinyurl.com/yuyejs (please visit my free website and let me know what you think about it.) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080731/72985d41/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: intex.pas Type: text/x-pascal Size: 5710 bytes Desc: not available Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080731/72985d41/attachment.bin

Reply by email

Mattias Gaertner
to Peter Williams
Show quoted text 16 lines
Hi All, I'm trying to install the attached component (intex.pas). I have created a package and added the unit "intex.pas" to it. When I compile it I get this error: /home/user/.wine/drive_c/pew_ink/Games/Frog/Delphi_source_code/Frog/Lazarus_1.4_alpha/intex.pas(41,43) Fatal: Can't find unit WinTypes used by intex >From the "intex.pas" file: uses WinTypes, WinProcs, SysUtils, Classes; Note: I realize that this is old source code. I'd be quite happy to settle for a modern component which does the same thing.

AFAIK the units wintypes and winprocs are windows units and not available for linux.
I see the wine path. Do you want to cross compile on linux for windows?

Mattias

Reply by email

Peter Williams
to Mattias Gaertner

Hi Mattias and All,

2008/7/31 Mattias Gaertner

Show quoted text 26 lines
On Thu, 31 Jul 2008 20:11:42 +1000 "Peter Williams" wrote: > Hi All, > > I'm trying to install the attached component (intex.pas). > > I have created a package and added the unit "intex.pas" to it. When I > compile it I get this error: > > /home/user/.wine/drive_c/pew_ink/Games/Frog/Delphi_source_code/Frog/Lazarus_1.4_alpha/intex.pas(41,43) > Fatal: Can't find unit WinTypes used by intex > > >From the "intex.pas" file: > > uses WinTypes, WinProcs, SysUtils, Classes; > > Note: I realize that this is old source code. I'd be quite happy to > settle for a modern component which does the same thing. AFAIK the units wintypes and winprocs are windows units and not available for linux. I see the wine path. Do you want to cross compile on linux for windows?

Okay... I need to explain. The program is a game which I wrote for M$ Windows when I used M$ Windows XP Home Edition (some time ago!). It was developed in Delphi 5 Enterprise for early versions, then Delphi 7 Select Edition.

The version you see in a sub-folder of .wine (WINE) is a version of it which I compiled and ran using Delphi 7 Select Edition and running with WINE. The program and its source code is available on SourceForge.com here [ http://sourceforge.net/projects/frog-retro-game/ ]. I don't really want to re-compile a version of it for M$ Windows unless necessary.

My aim is to port the code to Lazarus and create Linux and hopefully even Mac versions of it available.

The component which I am referring to in my email is one which my game uses (in Delphi). I'm really hoping that there is a Lazarus component which does effectively the same thing. { I hope I explained that well enough. }

Fond Regards and Best Wishes,
PEW
from Hobart, Tasmania, Australia

Show quoted text 6 lines
Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Fond Regards, Peter Eric (aka 'pew') WILLIAMS My free website is: http://pewtas.googlepages.com (or) http://tinyurl.com/yuyejs (please visit my free website and let me know what you think about it.) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080731/865a8948/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: intex.pas Type: text/x-pascal Size: 5710 bytes Desc: not available Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080731/865a8948/attachment.bin

Reply by email