Here is what I want: I have a huge legacy C/C++ codebase written for POSIX, including some very POSIX specific stuff like pthreads. This can be compiled on Cygwin/GCC and ru
You should be able to reference the DLL that was built against Cygwin without having to create a new DLL. The only requirement is that you need to make sure that both "cygwin.dll" and the DLL that you are trying to load are in the appropriate paths. You probably need to use SetDllDirectory prior to invoking "LoadLibrary".