On Mar 30, 2000, Paul Sokolovsky <[EMAIL PROTECTED]> wrote:
AO> I'm sure Gary will tell you how impossible that is to achieve, because
AO> of the brain-damaged way in which DLLs were designed on MS-Windows.
> Yes, we already had little talk on this. But that's what ignorant
> newcomers are good for - they don't know precise level of
> impossibility ;-)
Ok, in this case, I won't tell you :-) that the impossibility arises
from the fact that data symbols imported from a DLL must be declared
with __declspec(dllimport), because the code that accesses it must be
generated as if the symbol's type was a pointer its actual type. And,
in the library itself, the symbol must be declared as
__declspec(dllexport), so that the symbol is added to the DLL
relocation table or however they call it.
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me