After trying using even WinDbg, I got it working by recreating my Release profile and building it as Release. I don't know why Debug was not working, if it was a debug define that Visual Studio set, or one of the many different flags used between both profiles. An exact copy from the Debug profile didn't work, so I had to make an actual Release, including optimization flags, etc. Both the Dll and the Console App started working after compiling as Release.