Hello,
Whilst working on a project for the Microsoft Imagine Cup, my friends and I came across a problem.
I coded up a lovely winsock wrapper which uses winsock2.h. This works fine on my test usage app but when added to the DarkGDK project it errored like hell.
Long story short.. DarkGDK references windows.h somewhere and as you know... those people at microsoft use windows.h as a stupid meta header that happens to have winsock.h (old) in it. This causes a lot of redefinition errors because Microsoft also forgot to add namespaces or even prefixes!!
I fixed the errors by changing windows.h but that is one messy workaround. I know there is a magic guard that can be put around the windows.h include to prevent this but that obviously has been missed off in the DarkSDK source code.
Could anyone point me in a direction of a fix for this?
Sorry about the large block of text!
Karsten