🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetAncestor

#11230
From: Ed Mulroy [TeamB]
Date: Fri, 20 Feb 2004 15:58
37 lines
2628 bytes
That seems to be a little known function.  In BCB6 function prototype for it
is in the winuser.h header file and a reference to it is supplied by the
import library for Windows, import32.lib but the Windows help file win32.hlp
does not have an entry for it.  Mr Salzman has provided a link to the
documentation for the function so you now know details of how it works and
how to use it.

If BCB 3.0 does not find an entry for it when linking then one reason is
that BCB 3.0 is ancient.  A work-around to get past that might be to do
something like this:

From the command line.  This assumes certain directories for Windows and for
your compiler  If they are not the same on your machine then substitute the
correct paths for your machine.

  cd "c:\program files\borland\cbuilder3\lib"
  impdef  user32.def  c:\windows\system32\user32.dll
  impdef  gdi32.def  c:\windows\system32\gdi32.dll
  impdef  kernel32.def  c:\windows\system32\kernel32.dll
  implib -c  mywin.lib  user32.def  gdi32.def  kernel32.def
  del user32.def
  del gdi32.def
  del kernel32.def

This will create mywin.lib as an import library for the 3 mentioned Windows
dll's that exist on your machine.  You can then add that library to your
project and any functions provided by those dll's that were not in the BCB
3.0 import library should be recognized.

.  Ed

> Boguslaw wrote in message
> news:4035e4d7@newsgroups.borland.com...
>
> How to find the API function GetAncestor. In the Microsoft
> dokumentation is but in my Borland Builder 3.0 C++ not.
> Anybody knows?
Technical Details
Message-ID: <40362ea1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nx02.iad01.newshosting.com!newshosting.com!elnk-atl-nf1!newsfeed.earthlink.net!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4035e4d7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a4c8fdbce88db0f0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-20 08:10:21 PST
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4035e4d7@newsgroups.borland.com>
Subject: Re: GetAncestor
Date: Fri, 20 Feb 2004 10:58:24 -0500
Lines: 39
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.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <40362ea1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1077292705 24.74.175.102 (20 Feb 2004 07:58:25 -0800)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nx02.iad01.newshosting.com!newshosting.com!elnk-atl-nf1!newsfeed.earthlink.net!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail