CPrintDialog CommDlgExtendedError

HoNey 1 Reputation point
2020-12-25T09:24:36.467+00:00

when i use CPrintDialog , (win10,x64)
CPrintDialog PD(TRUE);
PD.DoModal();
it show no dialog and returned IDCANCEL, and i run CommDlgExtendedError () after it,
then returned "CDERR_MEMLOCKFAILURE", it means "The common dialog box function was unable to lock the memory associated with a handle."
but i don't understand it, how can i fix it?what can i do?

Windows for business | Windows Server | User experience | Print jobs
Windows for business | Windows Server | User experience | Other
Developer technologies | C++
Microsoft Security | Microsoft Graph
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.