The Unlord
September 2nd, 2005, 08:19 AM
Hi
I'm having problems with the new operator on some GDI+ objects.
I want to create a CachedBitmap via a pointer. But if I try
m_pBmpBack = new CachedBitmap(&Bmp, m_pGraphics);
I get compiler error C2660
'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments
Somehow, the compiler doesn't seem to take the constructor of CachedBitmap, but sticks to the base class' constructor GdiplusBase, which only takes a size parameter.
Then I downloaded a sample, that does exactly the same, but lo and behold, it compiles without any fuss.
What am I missing here?
thx a bunch!
I'm having problems with the new operator on some GDI+ objects.
I want to create a CachedBitmap via a pointer. But if I try
m_pBmpBack = new CachedBitmap(&Bmp, m_pGraphics);
I get compiler error C2660
'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments
Somehow, the compiler doesn't seem to take the constructor of CachedBitmap, but sticks to the base class' constructor GdiplusBase, which only takes a size parameter.
Then I downloaded a sample, that does exactly the same, but lo and behold, it compiles without any fuss.
What am I missing here?
thx a bunch!