I'm new to Pelles-C although well used to C, Python a good variety of things in between. I'm struggling to get my head around importing DLLs and would welcome any advice on offer.
Essentially I've got a 10 line C test app which calls various functions in windows DLL (msmapi32.dll - Micronetics MSM-Activate API). On compiling I get
POLINK: error: Unresolved external symbol '_msm_initialize'.
i.e. a straight forward linker error. I thought I needed to import the DLL so I tried
polib /OUT:msmapi32.lib /MAKEDEF:msmapi32.def msmapi32.dll
but neither adding the lib nor the def to the project solves it. I've scoured google trying to find an example or some other hint and all seem suggest that these steps are what I need to do but to no avail. I've tried everything I can think of but am ready to hit it with something big and heavy.
In python the ctypes library imports and uses this dll without any difficulty if that helps.
Could some kind soul put me out my misery and give me a clue which incantantation will fix this.
Kind regards
Iain