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.