kevin_i_orourke has asked for the wisdom of the Perl Monks concerning the following question:

This is all Win32/ActivePerl stuff, please ignore if you're not a fellow Windows sufferer.

I've been thinking about something which would require creating a DLL which would run some Perl code and also provide the Perl code with some extra functions.

The idea behind this is to allow me to write PalmOS conduits in Perl. I know I could use XS to write wrappers around the Perl conduit API but I'm not so sure if it's possible to have Perl embedded in a DLL.

Basically, the DLL has a few entry points called by Palm's HotSync program. These should trigger the loading/execution of the Perl program, which then uses the HotSync API wrapper functions to do all the synchronisation.

Hope this makes sense to other people.

--

Kevin O'Rourke

Replies are listed 'Best First'.
Re: Embedding Perl in a DLL
by MeowChow (Vicar) on Mar 25, 2001 at 02:39 UTC
    Is this what you're looking for?
       MeowChow                                   
                   s aamecha.s a..a\u$&owag.print

      Could be, I'm going to look at it in more detail later.

      Anything that avoids too much Visual C++ has to be good. In my case 'too much Visual C++' == 'any Visual C++'

      Thanks,

      Kev.

      -- Kevin O'Rourke