As far as I understood, DLLs are being imported on the very beginning of the compiled code, first checking in the local directory and then in the path variable directories. For my situation I need the executable to NOT check in the local directory, as there is a DLL with the same name but a different purpose (it is used by for another application which is located in the same directory).
The DLL of interest is wsock32.dll. Everything works fine as long as the "wrong" DLL is not in the same folder as my executable. When it is, the following critical error occurs instantly when I start the executable, even before doing anything:
It would be really nice if there was some compiler/linker parameter, custom import code or another workaround for this.Procedure entry point "select" could not be located in "WSOCK32.DLL".
Thanks in advance!


