Board index » delphi » TStringList not available in Win32 graphical applications

TStringList not available in Win32 graphical applications


2007-12-20 10:59:26 PM
delphi178
(posting to non-technical because I am not sure which group is the
appropriate one)
CodeGear RAD Studio 2007. When creating a console-type Win32 application,
and adding the Classes unit into the uses clause, the TStringList class is
available and works OK. However, when creating a graphical Win32
application, (where Classes is already connected by default), the class
name is not recognized.
Any ideas?
 
 

Re:TStringList not available in Win32 graphical applications

Vasiliy Faronov writes:
Quote
Any ideas?
Could it be that you mean the Error Insight (red underlined words) ?
--
Regards,
Andreas Hausladen
 

Re:TStringList not available in Win32 graphical applications

Vasiliy Faronov writes:
Quote
(posting to non-technical because I am not sure which group is the
appropriate one)

CodeGear RAD Studio 2007. When creating a console-type Win32 application,
and adding the Classes unit into the uses clause, the TStringList class is
available and works OK. However, when creating a graphical Win32
application, (where Classes is already connected by default), the class
name is not recognized.

Any ideas?
Not sure what you mean by "added by default" but if its not in your uses
list add it.
Mitch
 

Re:TStringList not available in Win32 graphical applications

Vasiliy Faronov writes:
Quote
(where Classes is already connected by default), the class
name is not recognized.
You'll have to clarify what you mean by "connected by default". The
unit is *not* implicitly included; you have to add it yourself.
--
Dave Nottage [TeamB]
 

Re:TStringList not available in Win32 graphical applications

Dave Nottage [TeamB] writes::
Quote
Vasiliy Faronov writes:

>(where Classes is already connected by default), the class
>name is not recognized.

I believe what he means is that if you create a Win32 GUI,
the Classes unit is already included in uses list.
Quote
You'll have to clarify what you mean by "connected by default". The
unit is *not* implicitly included; you have to add it yourself.

I'm not sure if things have changed, but in D7, when I create a new
Win32 App (Is it even necessary to say Win32, since Delphi 7 can only
do Win32?), the Classes unit is included in the uses list.
Edmund
 

Re:TStringList not available in Win32 graphical applications

Thanks for all the replies.
On Fri, 21 Dec 2007 09:42:04 +0800, Edmund writes:
Quote
I believe what he means is that if you create a Win32 GUI,
the Classes unit is already included in uses list.
Exactly. Furthermore, even if the unit is manually removed from the list
and added back, the problem still persists.
--
Vasiliy Faronov
 

Re:TStringList not available in Win32 graphical applications

On Thu, 20 Dec 2007 08:29:40 -0700, Andreas Hausladen writes:
Quote
Could it be that you mean the Error Insight (red underlined words) ?
Yes. The name "TStringList" is not recognized, although it exists in the
Classes unit.
--
Vasiliy Faronov
 

Re:TStringList not available in Win32 graphical applications

Vasiliy Faronov schrieb:
Quote
Thanks for all the replies.

On Fri, 21 Dec 2007 09:42:04 +0800, Edmund writes:
>I believe what he means is that if you create a Win32 GUI,
>the Classes unit is already included in uses list.

Exactly. Furthermore, even if the unit is manually removed from the list
and added back, the problem still persists.
But the code compiles?
If yes it is really _only_ a code insight bug.
Greetings
Markus
 

Re:TStringList not available in Win32 graphical applications

Delphi does that to me when I change between the code view and form view
before the program is finished loading
Vasiliy Faronov writes:
Quote
On Thu, 20 Dec 2007 08:29:40 -0700, Andreas Hausladen writes:
>Could it be that you mean the Error Insight (red underlined words) ?

Yes. The name "TStringList" is not recognized, although it exists in the
Classes unit.

 

Re:TStringList not available in Win32 graphical applications

On Fri, 21 Dec 2007 15:00:24 +0100, Markus.Humm writes:
Quote
But the code compiles?
No, the code does not compile.
--
Vasiliy Faronov
 

Re:TStringList not available in Win32 graphical applications

On Fri, 21 Dec 2007 18:27:31 +0100, Tom Reiertsen writes:
Quote
Just compile your app once and the red lines produced by Error Insight
are removed.
The code does not compile.
--
Vasiliy Faronov
 

Re:TStringList not available in Win32 graphical applications

"Vasiliy Faronov" <XXXX@XXXXX.COM>writes
Quote
On Thu, 20 Dec 2007 08:29:40 -0700, Andreas Hausladen writes:
>Could it be that you mean the Error Insight (red underlined words) ?

Yes. The name "TStringList" is not recognized, although it exists in the
Classes unit.

Just compile your app once and the red lines produced by Error Insight are
removed.
Tom
 

Re:TStringList not available in Win32 graphical applications

Vasiliy Faronov writes:
Quote
No, the code does not compile.
Can you post an example to borland.public.attachments, please?
Incidentally, this is a rare occasion where I am participating in a
technical support type question in this group.
In future, please use something like borland.public.delphi.rtl.general
--
Dave Nottage [TeamB]