Discussion:
Teeworld message when compiling dll
(too old to reply)
r***@talktalk.net
2010-02-14 15:17:28 UTC
Permalink
I have just tried to compile my first dll prog in Delphi 5 and have
received the following error message :-

Required package 'Teeworld95' not found.

I've never heard of Teeworld before but googling it produced a gaming
site. I've emailed them to see if they can shed any light on this
but I wonder if anyone else has encountered either this message or
something of the same nature indicating some sort of interference in
the dll compiler routines.
Jamie
2010-02-14 15:54:04 UTC
Permalink
Post by r***@talktalk.net
I have just tried to compile my first dll prog in Delphi 5 and have
received the following error message :-
Required package 'Teeworld95' not found.
I've never heard of Teeworld before but googling it produced a gaming
site. I've emailed them to see if they can shed any light on this
but I wonder if anyone else has encountered either this message or
something of the same nature indicating some sort of interference in
the dll compiler routines.
You obviously have something in the USES list that requires this
package. A package that is version specific to your compiler for this
product 'Teeworld95'

I assume you're just trying to get existing code you found somewhere
to work?

I didn't find anything as you stated except for 'Teeworld" which is a
worms game or something ? Is this what you're really trying to do ?
r***@talktalk.net
2010-02-15 09:22:23 UTC
Permalink
On Feb 14, 3:54 pm, Jamie
Post by Jamie
Post by r***@talktalk.net
I have just tried to compile my first dll prog in Delphi 5 and have
received the following error message :-
Required package 'Teeworld95' not found.
I've never heard of Teeworld before but googling it produced a gaming
site.   I've emailed them to see if they can shed any light on this
but I wonder if anyone else has encountered either this message or
something of the same nature indicating some sort of interference in
the dll compiler routines.
You obviously have something in the USES list that requires this
package. A package that is version specific to  your compiler for this
product 'Teeworld95'
   I assume you're just trying to get existing code you found somewhere
to work?
   I didn't find anything as you stated except for 'Teeworld" which is a
worms game or something ? Is this what you're really trying to do ?
Thanks for the reply Jamie.
The dll is a few lines to receive some data from a stockmarket feed
application and as a first attempt to write a dll - gaming is not
involved at all.
The first thing I looked at was the uses list - that is just the 2
items that the compiler installs, namely SysUtils and Classes. Here
is the code:-


library ForexCurrUpd;

{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures
or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }

uses
SysUtils,
Classes;

{$R *.RES}
var
ForexCurrUpdateStr: pchar;
procedure PassOnCSVString(CurrUpdate:pchar): export;
begin
SetString(ForexCurrUpdateStr,CurrUpdate,length(CurrUpdate));
end;

function RecoverCSVString: pchar;
begin
SetString(result,ForexCurrUpdateStr,length(ForexCurrUpdateStr));
end;

exports PassOnCVString, RecoverCSVString;

begin
end.


I did a full search of my hard disk for the string 'Teeworld95' using
Agent Ransack which has a text search facility in the hope that there
might be some chain of dependencies that had it in but nothing was
found.

I'm waiting now for a response from the Teeworld people - perhaps they
issue a package to game developers and in some (perhaps sinister ) way
it has got into my system. Very baffling and preventing me from
getting any further in seeing whether I am understanding dll writing
correctly.
Ron
r***@talktalk.net
2010-02-15 10:45:48 UTC
Permalink
Post by r***@talktalk.net
On Feb 14, 3:54 pm, Jamie
Post by Jamie
Post by r***@talktalk.net
I have just tried to compile my first dll prog in Delphi 5 and have
received the following error message :-
Required package 'Teeworld95' not found.
I've never heard of Teeworld before but googling it produced a gaming
site.   I've emailed them to see if they can shed any light on this
but I wonder if anyone else has encountered either this message or
something of the same nature indicating some sort of interference in
the dll compiler routines.
You obviously have something in the USES list that requires this
package. A package that is version specific to  your compiler for this
product 'Teeworld95'
   I assume you're just trying to get existing code you found somewhere
to work?
   I didn't find anything as you stated except for 'Teeworld" which is a
worms game or something ? Is this what you're really trying to do ?
Thanks for the reply Jamie.
The dll is a few lines to receive some data from a stockmarket feed
application and as a first attempt to write a dll - gaming is not
involved at all.
The first thing I looked at was the uses list - that is just the 2
items that the compiler installs, namely SysUtils and Classes.   Here
is the code:-
library ForexCurrUpd;
{ Important note about DLL memory management: ShareMem must be the
  first unit in your library's USES clause AND your project's (select
  Project-View Source) USES clause if your DLL exports any procedures
or
  functions that pass strings as parameters or function results. This
  applies to all strings passed to and from your DLL--even those that
  are nested in records and classes. ShareMem is the interface unit to
  the BORLNDMM.DLL shared memory manager, which must be deployed along
  with your DLL. To avoid using BORLNDMM.DLL, pass string information
  using PChar or ShortString parameters. }
uses
  SysUtils,
  Classes;
{$R *.RES}
var
  ForexCurrUpdateStr: pchar;
procedure PassOnCSVString(CurrUpdate:pchar): export;
begin
   SetString(ForexCurrUpdateStr,CurrUpdate,length(CurrUpdate));
end;
function RecoverCSVString: pchar;
begin
   SetString(result,ForexCurrUpdateStr,length(ForexCurrUpdateStr));
end;
exports PassOnCVString, RecoverCSVString;
begin
end.
I did a full search of my hard disk for the string 'Teeworld95' using
Agent Ransack which has a text search facility in the hope that there
might be some chain of dependencies that had it in but nothing was
found.
I'm waiting now for a response from the Teeworld people - perhaps they
issue a package to game developers and in some (perhaps sinister ) way
it has got into my system.   Very baffling and preventing me from
getting any further in seeing whether I am understanding dll writing
correctly.
Ron- Hide quoted text -
- Show quoted text -
I've just tried the following:
From Delphi 5 IDE File - New - DLL
Removed the uses SysUtils and Classes that Delphi automatically adds
From the Run menu chosen Compile
The original fatal error re Teeworld95 appears!

I then created another new project selecting Application and not
adding any code and tried to compile that.
Same error

However compiling an existing project started several months ago
doesnt produce the error.

Something weird in the internals of the Delphi compile process on my
machine?

I am reluctant to do a reinstall of Delphi but it looks as if that is
the next thing to try.

Help!!!!!
Ron
Sertac Akyuz
2010-02-15 14:24:31 UTC
Permalink
Post by r***@talktalk.net
I have just tried to compile my first dll prog in Delphi 5 and have
received the following error message :-
Required package 'Teeworld95' not found.
Have you checked Project -> Options -> Packages ?

Regards.



--- news://freenews.netfront.net/ - complaints: ***@netfront.net ---
r***@talktalk.net
2010-02-15 20:44:42 UTC
Permalink
Post by Sertac Akyuz
Post by r***@talktalk.net
I have just tried to compile my first dll prog in Delphi 5 and have
received the following error message :-
Required package 'Teeworld95' not found.
Have you checked Project -> Options -> Packages ?
Regards.
Solved thank heaven.
Some time ago I tried to download and install a TeeChart beta/trial
version. It errored a few times so I abandoned the attempt to try
it. Turns out that TeeChart have a package called TeeWorld and this
had been entered into the package runtime lists but did not appear in
the IDE component dialogs and in the runtime package list was well off
the screen. So amending the package lists and the clicking for
default has cured it.

My thanks to those who read and responded.
Ron

Loading...