Main Area and Open Discussion > DC Gamer Club
Something similiar to XFire...
(1/1)
Codebyte:
So i've been wanting to use IRC inside of my games when they are running... so I dont have to alt-tab out and what not... I've figured out the core of what I need to do to make a program overlay a game and here it is:
//scan for the game handle with
bool WINAPI EnumDesktopWindows();
//With the HWND you can access the DC with
HDC GetDC(HWND hWnd);
//now create a DC where you can copy the screen
HDC CreateCompatibleDC(HDC hdc);
//and a bitmap to access the data
HBITMAP CreateCompatibleBitmap(HDC hdc, int nWidth, int nHeight);
//link them together
HGDIOBJ SelectObject(HDC hdc, HGDIOBJ hgdiobj);
//copy the screen into our DeviceContex
BOOL BitBlt(...);
//access the bits with
LONG GetBitmapBits(HBITMAP hbmp, LONG cbBuffer, LPVOID lpvBits);
But, what im wanting to know is: Does anyone else know what im talking about here? If so, lets work together on this... could be amazing since there is only currently only 1 IRC Client that works in games (Gamepe) and it doesnt work with NVIDIA cards...
gamepe:
Hey Codebyte
I am one of gamepe developers
gamepe should work with NVIDIA
so can you please give it another try and shoot us the coredump .
Thanks
Gamepe team
Codebyte:
any word on 64 bit windows vista support?
Navigation
[0] Message Index
Go to full version