i want to link my win32 application (non-mfc) to two dlls so i did that:
1)i went to project->settings->link->object/library modules: and added the 1stDll.lib and 2stDll.lib.
2)in this two dlls there is a function each one has the same name and prtotype let's say (void func()) but they are different in code (do different jobs)
3)in my main source file (app.cpp) i imported the two functions that i want to call by writting this code:
__declspec(dllimport) void __stdcall func(); //this is the 1stDll's function
__declspec(dllimport) void __stdcall func(); //this is the 2stDll's function
but the second declreation will make an error while compiling and linking the program so i can not write it ... now how i can call these two functions from my (one .cpp source file) application even if they having the same name and prototype ? is not there any way to alias thier names ? and i can not change the dlls code or names or anything into them becouse they are allready compiled and programmed by another programmer and i do not have thier code LOL... PLZZ help