Hi there,
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.
//importDLL.c
Code:#include "importDLL.h" #include <windows.h> void importDLL() { typedef int (*importFunction)(); importFunction impFcn; HINSTANCE hinstLib = LoadLibrary("someDLL.dll"); impFcn = (importFunction)GetProcAddress(hinstLib, "impFcn"); }
//importDLL.h
The problem is in main.c it doesn't recognize the imported DLL function "impFcn". How can I fix it?Code:void importDLL(void);



LinkBack URL
About LinkBacks



