Hi, I am trying to create a win32 window using RegisterClass(Ex). It fails on x64 but works on x86. The error code is 998 = ERROR_NOACCESS, Invalid access to memory location. For x64 I used -L/ENTRY:mainCRTStartup because of link error(not finding entry point). Not sure if this is causing the problem or not.