| Subject: | Interfaces in DLL's *without* using COM? |
| Posted by: | Arthur Hoornweg (antispam.hoornweg@casema.nl.net) |
| Date: | Thu, 27 May 2010 |
Hello all,
I have a bunch of classes (derived from tinterfacedobject)
and simple class factories that I would like to put in a DLL
and make them available to applications *without* using
COM or type libraries.
The class factory routines all look like this:
Function Get_myobject : iMyinterface; Stdcall;
Would it be possible to put these classes and class factories in
a DLL, and then simply call the class factories that reside in the
DLL from an *.EXE program?
Of course I would make sure that the executable knows the
complete declarations and class ID's of all interfaces.
Could that work? And more importantly, would reference
counting still work?
--
Arthur Hoornweg
(In order to reply per e-mail, please just remove the ".net"
from my e-mail address. Leave the rest of the address intact
including the "antispam" part. I had to take this measure to
counteract unsollicited mail.)