RE: XML under ActiveState Perl for 64-bit Windows
by John Dlugosz other posts by this author
May 7 2009 8:28AM messages near this date
view in the new Beta List Site
Re: XML under ActiveState Perl for 64-bit Windows
|
RE: XML under ActiveState Perl for 64-bit Windows
& XSLT > From: Randy Kobes [mailto:randy.kobes@[...].com]
> Sent: Wednesday, May 06, 2009 11:25 PM
> To: Jan Dubois
> Cc: John Dlugosz; perl-xml@[...].com
> Subject: Re: XML under ActiveState Perl for 64-bit Windows
> Something I've been asked about, and was wondering myself, since I
> don't have a 64 bit machine to play with - would a ppm package:
> http://cpan.uwinnipeg.ca/dist/XML-LibXML
> built on a 32 bit machine work on a 64 bit machine (in principle)? For
> XML::LibXML, this would mean the external libxml2 library, as well as
> the perl glue, that goes into making the ppm package would have to be
> compatible.
In Windows, a 64-bit process can only load 64-bit DLLs, and a 32-bit
process can only load 32-bit DLLs.
Now if it's not done with LoadLibrary, but by using COM, the concepts of
hosting a DLL (normally an in-proc server) in a shell EXE to make it
out-of-process is well-established. That would have no trouble
marshalling across processes of different types.
Now in principle, the DLL knows nothing about Perl, so doesn't "reach
out" in complex ways. The functions in the DLL are wrapped
automatically using the XS generator. However, that doesn't have enough
information to provide marshalling across different address spaces. For
that you can just have "a pointer", but need to know how to deep-copy
it. You would have to write a full MIDL description of the DLL's
interface.
--John
TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three ope
rating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), Trade
Station Technologies, Inc., a trading software and subscription company, and TradeStation Eu
rope Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these com
panies provides trading or investment advice, recommendations or endorsements of any kind. T
he information transmitted is intended only for the person or entity to which it is addresse
d and may contain confidential and/or privileged material. Any review, retransmission, disse
mination or other use of, or taking of any action in reliance upon, this information by pers
ons or entities other than the intended recipient is prohibited. If you received this in err
or, please contact the sender and delete the material from any computer.
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
John Dlugosz
Jenda Krynicky
Robin Berjon
John Dlugosz
Jan Dubois
Randy Kobes
John Dlugosz
Jan Dubois
|