Login  Register

Re: Exporting methods in Dolphin deployed DLLs

Posted by Andy Bower-3 on Sep 08, 2004; 9:03am
URL: https://forum.world.st/Exporting-methods-in-Dolphin-deployed-DLLs-tp3371417p3371429.html

Mark,

> Does anyone know how to tell Dolphin to export a method/class when
> deploying a DLL in Dolphin?
>
> I'm wanting to be able to run a method from the command line via
> rundll32.
>
> I can't seem to spot anything in the deployment settings, and google
> doesn't seem to show anything either.

I'm afraid Dolphin doesn't support the deployment of "straight" DLLs
with functions that can be called using C/C++ calling sequences. There
are a number of reasons for this, one of them being that DLL functions
are threadless, i.e. a call takes place on the thread of the
application doing the calling. The Dolphin VM, of course needs to
manage it's own threads for garbage collection etc.

What you can do, however, is write "in-process" ActiveX controls that
are deployed to a DLL and the "functions" (really they are methods) can
then be called from another application using COM. I realise that the
documentation for this has been somewhat lacking so I've uploaded the
beta documentation from D6 here:

http://www.object-arts.com/downloads/misc/developingCOMcomponents.pdf

This will be fine for D5 too.

Best regards

Andy Bower
Dolphin Support
www.object-arts.com