I'm trying to implement some existing code into a Max external which uses MFC. I know that 'windows.h' is already included in the Max SDK, and these two aren't supposed to be used together.
Basically, am I wasting my time on this? I'm including 'stdafx.h' first to avoid errors due to use of 'windows.h', but am now getting the following error:
error LNK2005:_DllMain@12 already defined in dllmain_win.obj
Is there a fix for this? Will this ever work?