Click here to Skip to main content
15,899,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generala problem about dll Pin
yingkou26-Dec-04 19:03
yingkou26-Dec-04 19:03 
Generalproblems with istream Pin
BSRK26-Dec-04 19:02
BSRK26-Dec-04 19:02 
GeneralRe: problems with istream Pin
ThatsAlok26-Dec-04 19:34
ThatsAlok26-Dec-04 19:34 
Generalrawinput in background Pin
balaclavabob26-Dec-04 18:44
balaclavabob26-Dec-04 18:44 
GeneralMultithreading Anti-Patterns Pin
SpaceMonkey_uk26-Dec-04 17:52
SpaceMonkey_uk26-Dec-04 17:52 
GeneralButton size algorithm Pin
Chris Hills26-Dec-04 16:31
Chris Hills26-Dec-04 16:31 
GeneralRe: Button size algorithm Pin
PJ Arends26-Dec-04 22:20
professionalPJ Arends26-Dec-04 22:20 
Generaltwo errors in using GDI+ &VC++.net Pin
Brillianxe26-Dec-04 16:13
sussBrillianxe26-Dec-04 16:13 
void CRegionWindowWnd::CreateGraphics(CWnd *pWnd)
{
if (pWnd == NULL)
return;

CRect rc;

// Get the client area
pWnd->GetClientRect(&rc);
//VALIDAREA(rc);

// Size not changed, don't do anything
if (rc.Width() == m_drawArea.Width() && rc.Height() == m_drawArea.Height())
return;

// Create bitmap
HWND hWnd = pWnd->GetSafeHwnd();
ASSERT (::IsWindow(hWnd));
Graphics graph(hWnd);

ASSERT (rc.Width() > 0);
ASSERT (rc.Height() > 0);


Bitmap *pBitmap = new Bitmap(rc.Width(), rc.Height(), (Graphics*)(&graph));//!!!error 1 here
ASSERT (pBitmap);
ASSERT (pBitmap->GetLastStatus() == Ok);

//Create graphics object
Graphics *pGraphics = new Graphics(pBitmap);//!!!error 2 here
ASSERT (pGraphics);
ASSERT (pGraphics->GetLastStatus() == Ok);

// If resizing, draw previous bitmap to reduce blinking
if (m_pBitmap)
{
pGraphics->DrawImage(m_pBitmap, 0, 0);
}
else
{
// Clean the bitmap
//Color clr(0,0,0);
//SolidBrush brush(clr);
//Rect rect = ToRect(rc);
//pGraphics->FillRectangle(&brush, rect);
}

// Store old members
Bitmap *pOldBitmap = m_pBitmap;
Graphics *pOldGraph = m_pGraphics;

// Set new graphics and bitmap
//m_pViewInfo->SetGraphics(pGraphics);
m_drawArea = rc;
m_pBitmap = pBitmap;
m_pGraphics = pGraphics;

delete pOldGraph;
delete pOldBitmap;

}
error C2660: 'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments
error C2660: 'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments

Why?
the initializing work had been done already...But this problem seems it not work...
GeneralRe: two errors in using GDI+ &VC++.net Pin
wpxu26-Dec-04 21:01
professionalwpxu26-Dec-04 21:01 
GeneralRe: two errors in using GDI+ &VC++.net Pin
PJ Arends26-Dec-04 21:49
professionalPJ Arends26-Dec-04 21:49 
GeneralCrystal Reports... Pin
dSolariuM26-Dec-04 15:39
dSolariuM26-Dec-04 15:39 
GeneralModeless Propertysheet Pin
lisoft26-Dec-04 15:27
lisoft26-Dec-04 15:27 
GeneralRe: Modeless Propertysheet Pin
PJ Arends26-Dec-04 21:45
professionalPJ Arends26-Dec-04 21:45 
GeneralRe: Modeless Propertysheet Pin
lisoft27-Dec-04 13:40
lisoft27-Dec-04 13:40 
QuestionHow to display a specifique layer from a photoshop file ? Pin
Dani10000126-Dec-04 15:26
Dani10000126-Dec-04 15:26 
Questionwhat's the unit of the return value of GetTextExtent()? Pin
Fei Xu26-Dec-04 15:14
Fei Xu26-Dec-04 15:14 
QuestionHow to change the button's text color? Pin
chenbuaa26-Dec-04 14:02
chenbuaa26-Dec-04 14:02 
GeneralEnums alignment Pin
TheSharkOfDil26-Dec-04 8:57
sussTheSharkOfDil26-Dec-04 8:57 
GeneralRe: Enums alignment Pin
John R. Shaw26-Dec-04 12:04
John R. Shaw26-Dec-04 12:04 
GeneralProblem with changing color of a pixel in a bitmap! Pin
Dani10000126-Dec-04 7:29
Dani10000126-Dec-04 7:29 
GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
John R. Shaw26-Dec-04 12:35
John R. Shaw26-Dec-04 12:35 
GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
Dani10000126-Dec-04 15:16
Dani10000126-Dec-04 15:16 
GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
John R. Shaw27-Dec-04 6:04
John R. Shaw27-Dec-04 6:04 
GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
PJ Arends26-Dec-04 22:06
professionalPJ Arends26-Dec-04 22:06 
GeneralRe: Problem with changing color of a pixel in a bitmap! Pin
John R. Shaw27-Dec-04 6:16
John R. Shaw27-Dec-04 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.