Delphi 2.0 OLE Automation Server questions.

In <4g01bm$> (131H20000-D.RUIZ(MT4084)1022MT) writes:

>I have two questions about writing OLE automation servers in Delphi
>2.0.  I've searched several sources (Borland's Delphi 2.0 Compiler
>Overview, various of Borland's Delphi 2.0 descriptions, Delphi
>Informant magazines), and have been unable to find clear answers.
>1. Will Delphi 2.0 let one (easily) write OLE automation servers that
>can be embedded in another application?  I know that Delphi 2.0 will
>support OLE automation servers, but it would be nice if those servers
>could have a visible form embedded in another application.

I think you are mixing the different parts of OLE2 here. Delphi 2.0
will let you easily write OLE automation servers. That only gives you
the behind-the-scenes script-type communication up an running.

The other point is the OLE server part that will let you embed an "object"
from you app into another application with in-place activation and
editing. I have not seen any official reports of support for this. It
is certainly doable by calling and conforming to the OLE2 APIs directly,
but I doubt that Delphi 2.0 will include some simple components, wrappers
or exports for this part.

It should, support OLE container applications through a simple component,
though (as it is in Delphi 1.0). This way you can easily embed objects
from other OLE server applications.

>2. Will Delphi 2.0 (or its companion 1.0 re-release) let one (easily)
>write 16-bit OLE automation servers?  VB4 supports the creation of
>16-bit out-of-process servers; I would hate to see Delphi lose out to
>VB4 in this arena.

Currently there is no direct, easy support for OLE automation servers
(or clients, for that matter) in Delphi 1.0. You can still call the
OLE API directly, and there are third-party solutions. Hopefully,
Borland will upgrade Delphi 1.0 next time around...

Delphi 2.0 cannot generate any 16-bit applications. If you use the new
automation features in Delphi 2.0, it will not compile in Delphi 1.0.
(There are language enhancements, like the 'automated' keyword, that
Delphi 1.0 does not recongnice).

 Hallvard Vassbotn  | Falcon AS (a Reuters company)  | Without programmers, | Stortorget 10,0155 OSLO,Norway | the world would stop!