🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: include TForm into ShellExtensionDLL

#11360
From: Remy Lebeau (TeamB)
Date: Sun, 15 Feb 2004 00:57
30 lines
1998 bytes
"nik" <neusser@okstate.edu> wrote in message
news:402ebc24$1@newsgroups.borland.com...

> Is there a difference if I include a TForm object into
> the ShellExtensionDLL or into a normal DLL?

A shell extension DLL is still a DLL regardless.

> I want to design the form with the IDE, I don't want to
> create it dynamically!

You have to instantiate it dynamically at runtime.  That has nothing to do
with the ability to edit it at design-time

> I tried to use the 'new' operator. Which handle should I
> use as the representation for the ParentApplication?

You don't, so use NULL.  Unless the DLL is provided with an HWND from the OS
that should be used, which is not the case for menu handlers.

> Contrary I tried createForm() and it works a bit. The systemMenu
> foe example doesn't react if I click the close button. That's what
> you meant with "with some care"?

VCL forms do not fully work in raw DLLs without taking extra steps to set
them up.


Gambit
Technical Details
Message-ID: <402ec23f$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: <402baeac$1@newsgroups.borland.com> <402bcd77$3@newsgroups.borland.com> <402ebc24$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,12d8f10b74656960
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-14 17:09:32 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <402baeac$1@newsgroups.borland.com> <402bcd77$3@newsgroups.borland.com> <402ebc24$1@newsgroups.borland.com>
Subject: Re: include TForm into ShellExtensionDLL
Date: Sat, 14 Feb 2004 16:57:51 -0800
Lines: 32
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.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <402ec23f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076806207 67.22.138.253 (14 Feb 2004 16:50:07 -0800)
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