RE: [rt.cpan.org #64575] Start callback not called with Strawberry Perl 5.10 / 5.12

[email protected] ("[email protected] via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Mon Jan 17 14:39:21 2011: Request 64575 was acted upon.
Transaction: Correspondence added by [email protected]
       Queue: Win32-Daemon
     Subject: RE: [rt.cpan.org #64575] Start callback not called with Strawberry Perl 5.10 / 5.12
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: open
 Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=64575 >


On Mon, 17 Jan 2011, Haiko Strotbek via RT wrote:
> 
> Ok, my former patch is useless - my suspicion pointed into the right
> direction: I found out that adding 'extern "C"' to the DllMain()
> signature fixes the problem and the DllMain() function is called.

Thanks for persisting in hunting this down!  It indeed looks like DllMain()
is treated specially by VC to always use the "C" naming convention, but
MinGW doesn't copy that special treatment.
 
> Unfortunately I don't know if VC is able to compile the modified code so
> perhaps the makefile script has to adjust it according to the compiler.

Adding the additional extern "C" should be a no-op in VC, so the fix should
be trivial.  I'll make another release after looking at the 64-bit issues
as well.

Cheers,
-Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.