C++ Plugin Can No Longer reference some Win32 Methods Like GetObject in 4.15
I have a project that has been working for a couple of years now but since the compilation changes in 4.15 I can no longer reference some Win32 calls like GetObject. I also get errors with DirectXMath.h related to InterlockedIncrement. This used to compile fine and now it seems that somehow _M_CEE is not being defined or its definition has changed and so some methods have been #undefined by the Win32 headers.
Is there a new process for referencing native methods and DX11 headers in 4.15 plugins? I've reinstalled visual studio, the windows developer sdk and checked to make sure my headers are using the allowwindowsplatform/hidewindowsplatform headers you guys have.
Thanks for your help!
asked Mar 03 '17 at 01:09 PM in C++ Programming
The solution for me was to: #include "AllowWindowsPlatformAtomics.h"
answered Mar 21 '17 at 02:29 AM
You can use
So people often
A lot of windows functions are like this, look a the very bottom of their documentation page.
Here is the actual windows.h code:
Follow this question
Once you sign in you will be able to subscribe for any updates here