Extern "Win32" - Is it "hooked in"?

BlitzMax Forums/BlitzMax Programming/Extern "Win32" - Is it "hooked in"?

Gabriel(Posted 2005) [#1]
I have a bunch of Win32 API stuff defined in Extern "Win32" blocks. Some of it is not available on all Windows versions. I determine the OS and then use some commands if it's 2k or higher and others if it's ME or lower. Simple, right?

Well on 98, the program complains about missing a DLL that is never called. I've checked the code, I don't call it at all. So unless the OS detection is failing ( possible, but unlikely ) it's very odd. So I'm wondering if the Extern "Win32" stuff is just definitions or if it actually tries to hook into the DLL and would fail if the DLL was not present, even if I never call any of the functions I define.


And if it is "hooked in" and it would crash even if never used, how the heck am I supposed to write code that goes either way depending on what's available?