in reply to [OT - MS Visual Studio] How to build a dll that Win32::API can access

Re: Win32::API and 'short' arguments]

1) Why can't double.pl access double.dll ?
What is the error ($! $^E ...)?

  • Comment on Re: [OT - MS Visual Studio] How to build a dll that Win32::API can access

Replies are listed 'Best First'.
Re^2: [OT - MS Visual Studio] How to build a dll that Win32::API can access
by syphilis (Archbishop) on May 24, 2008 at 12:22 UTC
    What is the error ($! $^E ...)?

    As I said in my original post, $^E contains "The specified procedure could not be found". I find that $! contains "Unknown error".

    Cheers,
    Rob
      Ah, so its able to access double.dll, it just can't find my_double
        Ah, so its able to access double.dll, it just can't find my_double

        Seems to be the case. Could it be that leading underscore ?

        I've just rebuilt the dll without the /Gz switch and dumpbin /exports double.dll then reports that my_double is exported (no leading underscore). When I then run double.pl, my_double is apparently found ok, but the script segfaults.

        Cheers,
        Rob