Exception while user callback (MFC)

0

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.

c++
windows-7
mfc
windows-10
asked on Stack Overflow Jul 18, 2016 by Freewister • edited Jul 18, 2016 by Přemysl Šťastný

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0