You should also be aware that some compilers may 'mangle' your function name (e.g. truncating it to 8 characters, etc.) so you need to know what function name was actually exported in the compiled dll, rather than just assume that it remains what you named it in your code.
Many compilers will have 'switches' that may allow you to switch off name-mangling. Others have it off by default.
Many compilers will have 'switches' that may allow you to switch off name-mangling. Others have it off by default.