Hi!
I'm trying to utalize functionallity from a Win32 DLL in my Code::Blocks C++ program.
I have .dll, .lib and .h-file and API documentation, and that's all I've got. The DLL is once built with MFC and the source code is not available. Is this possible to link an Extension DLL (MFC) from an application not build with VisualStuio? (My aim is to use a free alternative to Vicious Studio, and Code::Blocks have topped all my expectations!)
With the .h file I can compile my sw, but when coming to the linker, I get the error code undefined reference to `DLL_Func1(long)'. Not suprisingly, the linker cannot fins the symbols.
I have tried to add the .lib file in Project Build Options, Linker Settings, Linked Libraries but it does not make any difference.
I'm running Win XP and Code::Blocks 10.05.
(I have not used the LoadLibrary and GetProcAddress methods, I was kind of hoping that I could use it as any functions via standard function calls to keep the code simple.)
Best Regards,
Andreas Lundgren