CPrintDialog CommDlgExtendedError

HoNey 6 Reputation points
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++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Microsoft Security | Microsoft Graph
{count} votes

Your answer

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