I am trying to create a function in a separate .C file (not the main.c) that imports the DLL functions. Below is what I have, but it doesn't compile.
typedef int (*importFunction)();
HINSTANCE hinstLib = LoadLibrary("someDLL.dll");
impFcn = (importFunction)GetProcAddress(hinstLib, "impFcn");
The problem is in main.c it doesn't recognize the imported DLL function "impFcn". How can I fix it?