That's right, but behind the scenes your TBitmap object translates into a COM object. Do you know how does a COM object look like? Hundreds of code lines! Regards, Fernando. --- yassergs@xxxxxxxxxxxxxxx wrote: From: "Yasser Gonzalez Soto" <yassergs@xxxxxxxxxxxxxxx> To: "gameprogrammer@xxxxxxxxxxxxx" <gameprogrammer@xxxxxxxxxxxxx> Subject: [gameprogrammer] why Always C++ Date: Fri, 07 Sep 2007 09:40:48 -0700 Why always C++ is choosed to gammeprogramming? Delphi is really is really easy for this. My point is, how you load and show an image in C++? c++ code: HBITMAP hbitmap CDC cdc; CDC memDC; HBITMAP oldbitmap; hbitmap=(HBITMAP)LoadImage(hInstance,IMAGE_BITMAP,FileName,0,0,LR_LOADFROMFILE); HDC hdc = GetDC(hwnd); HDC image_dc = CreateCompatibleDC(hdc); HBITMAP old_hbitmap = (HBITMAP)SelectObject(image_dc,hbitmap); BitBlt(hdc,50,50,320,192,image_dc,0,0,SRCCOPY); delphi code: bitmap:TBitmap; bitmap:=Tbitmap.Create; bitmap.LoadFromFile(file_name); Besides, that 'erase-screen-redraw-screen' business is troublesome --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html _____________________________________________________________ Apuntate para tener un correo gratis de "El Paraiso de las Matematicas" en http://www.matematicas.net --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html