🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Control pointer from window handle

#13010
From: Ivan Johansen
Date: Tue, 04 Nov 2003 10:14
11 lines
1454 bytes
nicolasr wrote:
> Question:
> How can the hook DLL get a pointer to the TDBGrid instance given
> the window handle?

It can't. There is no relation from the handle to the TDBGrid instance. 
  The TDBGrid cannot be accessed from another application anyway, 
because it is in another address space. You will have to copy all needed 
data between the two applications yourself, for example using shared memory.

Ivan Johansen
Technical Details
Message-ID: <3fa77bef$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: <3fa70ef0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,eb9c48fffbb335b9
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-04 02:39:12 PST
Date: Tue, 04 Nov 2003 11:14:21 +0100
From: Ivan Johansen <NG5@Padowan.remove.dk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Control pointer from window handle
References: <3fa70ef0@newsgroups.borland.com>
In-Reply-To: <3fa70ef0@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.89.221.64
Message-ID: <3fa77bef$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067940847 193.89.221.64 (4 Nov 2003 02:14:07 -0700)
Lines: 12
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