I always wondered that when I used to use DarkBASIC, DIV Games Studio, Fenix, etc... however, in time I´ve learned that it can be the best one for the task using the right libraries that makes coding easier. For example that C++ code appears way too complicated for me. However if you'd choose SDL, it's as easy as: SDL_Image * img; img = IMG_Load("myimage.bmp"); :P On 9/7/07, Yasser Gonzalez Soto <yassergs@xxxxxxxxxxxxxxx> wrote: > > 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 > > >