in reply to why Crashing windows API using perl??

It's probably the calling convention. Change your C to:
double __stdcall adnValues(double x, double y)
You can use WINAPI instead of __stdcall (that's 2 underscores) if you #include <windows.h>.
  • Comment on Re: why Crashing windows API using perl??

Replies are listed 'Best First'.
Re^2: why Crashing windows API using perl??
by flw (Novice) on May 26, 2006 at 01:26 UTC
    I also meet this problem days ago, and I solve my problem as same as cdarke said. I agree cdarke's suggestion. WINAPI is better.