I've not done any windows programming for a few years now and I'm a bit rusty on how to use dllimport. I have something along the lines of:
extern "C"
{
__declspec(dllimport) int myFunct();
}
int main()
{
cout<<myFunct();
}
I get 2 unresolved externals linker errors and a warning that /DELAYLOAD:myLib.dll was ignored because no imports from it were found. What am I missing here? I thought that I can add the DLL to the delay load path, and the linker will figure to use it for the dll import??
This is a 3rd party DLL which comes without .h or .lib file.