It seems that you are using MFC. If GDI+ is needed, then try this:
Gdiplus::Matrix* matrix = ::new Gdiplus::Matrix( );
. . .
::delete matrix;
// or:
Gdiplus::Matrix matrix;
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
From the documentation
Syntax
C++
void Matrix();
From gdiplusmatrix.h
:
Matrix()
{
GpMatrix *matrix = NULL;
lastResult = DllExports::GdipCreateMatrix(&matrix);
SetNativeMatrix(matrix);
}
From my source code
Gdiplus::Matrix * matrix = new Gdiplus::Matrix();
From the compilation
1>C:\Users\admin\OneDrive\Projects\Patterns\Pattern1\Patterns1\Patterns1Dlg.cpp(370,56): error C2660: 'Gdiplus::GdiplusBase::operator new': function does not take 3 arguments
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\GdiplusBase.h(30,12): message : see declaration of 'Gdiplus::GdiplusBase::operator new'
The first error message refers to my use of new Gdiplus::Matrix().
The second error refers to the line
void* (operator new)(size_t in_size)
{
return DllExports::GdipAlloc(in_size);
}
So, why is this failing and how do I fix it?
It seems that you are using MFC. If GDI+ is needed, then try this:
Gdiplus::Matrix* matrix = ::new Gdiplus::Matrix( );
. . .
::delete matrix;
// or:
Gdiplus::Matrix matrix;