🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Opening up Web Browsers inside my App

#7140
From: Hans Galema
Date: Mon, 07 Mar 2005 13:54
22 lines
2074 bytes
Gav wrote:

>>How can my progam start another application and 'attach' that
>>instance to one of my forms or to a tabsheet ?
> 
> Now why didn't I phrase it that way, much better thanks.  :)
> Now can anyone tell me how I can do that, it's exactly what I want.!
> 
> (If your reformulation of the question was a hint at how to do it, I am
> taking a look, but am clueless at this stage. I have dropped tabs and
> all sorts of things onto a form but cannot get an instance or see any way
> of running  a program inside a tabsheet)

At the moment I'm not exactly sure how to do it. But you will need to
exchange ShellExecute for CreateProcess as you will need the handle
of the process in order to attach the prograsmmwindow to one
of your forms. Or use ShellExecute() and then FindWindow() to get
the handle. I've seen this done in one of these groups I think.
I would have to google for it to find it. At the moment I suggest that
you try yourself first or wait till an expert comes in.

Hans.
Technical Details
Message-ID: <422c5d8e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <422926aa$1@newsgroups.borland.com> <422c31bd$1@newsgroups.borland.com> <422c515c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,91b603800ded4d32
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 07 Mar 2005 14:54:43 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Opening up Web Browsers inside my App
References: <422926aa$1@newsgroups.borland.com> <422c31bd$1@newsgroups.borland.com> <422c515c@newsgroups.borland.com>
In-Reply-To: <422c515c@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <422c5d8e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110203790 129.125.201.248 (7 Mar 2005 05:56:30 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail