Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Help avoiding exception in Win32::API ?

by Tanktalus (Canon)
on Sep 14, 2005 at 21:10 UTC ( #492022=note: print w/ replies, xml ) Need Help??

in reply to Help avoiding exception in Win32::API ?

Trying to avoid Windows at nearly any cost for the last, oh, 10 years now, all I can ask is whether you're compiling in C or C++ mode, and, if C++, try in C mode, or just simply put 'extern "C"' in front of your function name:

extern "C" int PerlTest(int a) { return a+1; }
Just a WAG, but I offer it in the off-chance that this is the problem. Last I recall, MSVC defaulted to C++ mode for compiling C code, but I could easily be misremembering, and they could have easily changed the default, or both. :-)

Comment on Re: Help avoiding exception in Win32::API ?
Download Code
Replies are listed 'Best First'.
Re^2: Help avoiding exception in Win32::API ?
by jimbojones (Friar) on Sep 14, 2005 at 22:24 UTC
    sorry, my node below 492054 should have been a reply to your node.

    - j

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://492022]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2016-02-12 13:25 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (397 votes), past polls