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