🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4682

Re: BDS2006: TPoint/TRect no elements of namespace Windows. How to handle?

#4682
From: Remy Lebeau (TeamB)
Date: Wed, 21 Dec 2005 00:14
22 lines
1694 bytes
<MR> wrote in message news:ub3hq1ppopsmmq20qnb0fthjuvoufesk38@4ax.com...

> When porting a program from BCB5 to BDS2006 (C++ Preview)
> when using an external library (GR32) I got an error
>
>   'TPoint' is no element of 'Windows'

TPoint, as well as many other data types, were moved to the "Types" unit in
BCB 6.  You need to adjust your code accordingly, ie:

    typedef Types::TPoint TPoint;

Although, why are you making such a typedef in the first place?

> Has there been a change in BDS2006 (or is it just because
> the C++ personality is currently 'preview'?

The change was made in BCB 6 a long time ago, not in BDS.


Gambit
Technical Details
Message-ID: <43a89ec9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <ub3hq1ppopsmmq20qnb0fthjuvoufesk38@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a722d7f837ed6e12
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <ub3hq1ppopsmmq20qnb0fthjuvoufesk38@4ax.com>
Subject: Re: BDS2006: TPoint/TRect no elements of namespace Windows. How to handle?
Date: Tue, 20 Dec 2005 16:14:07 -0800
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43a89ec9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1135124169 68.69.17.41 (20 Dec 2005 16:16:09 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!195.92.193.196.MISMATCH!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail