Article View: borland.public.cppbuilder.nativeapi
Article #11374Re: How to call a Windows API function with same name as a Borland function?
From: Michel Leunen
Date: Mon, 16 Feb 2004 20:34
Date: Mon, 16 Feb 2004 20:34
18 lines
1601 bytes
1601 bytes
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:
<40312963@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-mailReferences:
<40311c43$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,5c45791eb4fc4f59 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-16 12:40:08 PST Date: Mon, 16 Feb 2004 21:34:38 +0100 From: Michel Leunen <mleu@STOPSPAMskynet.be> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to call a Windows API function with same name as a Borland function? References: <40311c43$1@newsgroups.borland.com> In-Reply-To: <40311c43$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.201.227.122 Message-ID: <40312963@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1076963683 80.201.227.122 (16 Feb 2004 12:34:43 -0800) Lines: 18 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