I have a function with this header
void LiveviewDlg::OnSize(UINT nType, int cx, int cy)
In this function I calculate some coordinates for my controls. I use for this
CRect rect;
GetWindowRect(&rect);
to get some values from my MFC control. After the line
GetDlgItem(IDSTART)->MoveWindow(dialogWidth - 120, 0, 100, 50);
I get the exception
Unhandled exception at 0x5DBA4F14 (mfc120ud.dll) in Liveview.exe: 0xC000041D: Exception while user callback (translated from german to english)
On my Windows 7 system my program works fine. On my windows 10 system I get the exception. I don't know, why is this exception thrown.
User contributions licensed under CC BY-SA 3.0