🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Set File Name of Open Dialog Box

#2885
From: John van de Geyn
Date: Wed, 20 Dec 2006 08:59
36 lines
2302 bytes
I have used Clientsocket and serversockets before to communicate between 
applications.
They are simple to implement.



"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:45883571$1@newsgroups.borland.com...
>
> "nil" <nilesh.gawali@gmail.com> wrote in message
> news:4587e6f1$1@newsgroups.borland.com...
>
>> My application is opening the Open Dialog Box Of another
>> application. Now,How to set file name of this Open Dialog Box,
>> Which is a child of another application.
>
> You cannot set the filename programmably from an external process.  To do 
> so
> would require the use of the CDM_SETCONTROLTEXT message, which has a 
> string
> parameter.  You cannot pass strings across process boundaries because of 
> the
> use of different address spaces.  So you would have to put your code into 
> a
> DLL and then use a hook via SetWindowsHookEx() to inject the DLL into the
> target process.  Only then will the DLL code run in the context of the
> target process instead of your application, so the message can be used. 
> You
> also have the added problem of being ble to find the proper dialog HWND
> after it has been opened so that you can send messages to it.  That is not
> easy to do from an external process, either.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <4588fb3a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4587e6f1$1@newsgroups.borland.com> <45883571$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2ba2d5dfbe86851c
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John van de Geyn" <j.vandegeyn@uq.net.au>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4587e6f1$1@newsgroups.borland.com> <45883571$1@newsgroups.borland.com>
Subject: Re: Set File Name of Open Dialog Box
Date: Wed, 20 Dec 2006 18:59:31 +1000
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 144.136.143.216
Message-ID: <4588fb3a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1166605114 144.136.143.216 (20 Dec 2006 00:58:34 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail