RE: XML under ActiveState Perl for 64-bit Windows
"John Dlugosz" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <450196A1AAAE4B42A00A8B27A59278E70B1C2420@EXCHANGE.trad.tradestation.com> |
> From: Randy Kobes [mailto:[email protected]] > Sent: Wednesday, May 06, 2009 11:25 PM > To: Jan Dubois > Cc: John Dlugosz; [email protected] > 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 operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs