πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to call a Windows API function with same name as a Borland function?

#11375
From: Zlika
Date: Mon, 16 Feb 2004 20:59
22 lines
1666 bytes
thank you!
"Michel Leunen" <mleu@STOPSPAMskynet.be> a οΏ½crit dans le message de
news:40312963@newsgroups.borland.com...
> Zlika wrote:
> > I would like to use the SetFocus function of the Windows API (in
windows.h).
> > However, BCB wants to use the TCustomForm->SetFocus() function instead!
> > How can I tell it to use the Windows API function?
>
> use ::SetFocus()
>
> The '::' tells the compiler to get the function which is in the global
> scope.
>
> Michel
> -- 
> ----------------------------------------
> Michel Leunen
> mailto: see my homepage.
> C++Builder, C++BuilderX, BCC5.5.1 Web site:
> http://www.leunen.com/
> ----------------------------------------
Technical Details
Message-ID: <40312f15$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40311c43$1@newsgroups.borland.com> <40312963@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,5c45791eb4fc4f59
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-16 13:10:19 PST
From: "Zlika" <zlika_eseSTOPSPAM@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40311c43$1@newsgroups.borland.com> <40312963@newsgroups.borland.com>
Subject: Re: How to call a Windows API function with same name as a Borland function?
Date: Mon, 16 Feb 2004 21:59:04 +0100
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.250.67.185
Message-ID: <40312f15$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076965141 81.250.67.185 (16 Feb 2004 12:59:01 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail