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?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,766 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,234 questions
C++
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.
3,552 questions
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
644 questions
{count} votes