DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Something similiar to XFire...  (Read 7,988 times)

Codebyte

  • "Premature Optimization is the root of all evil."
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 160
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Plugin Coding Medal
Something similiar to XFire...
« on: October 02, 2008, 06:24 PM »
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...
CodeByter.com - http://www.codebyter.com

gamepe

  • Participant
  • Joined in 2008
  • *
  • Posts: 1
Re: Something similiar to XFire...
« Reply #1 on: November 04, 2008, 05:59 AM »
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

  • "Premature Optimization is the root of all evil."
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 160
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Plugin Coding Medal
Re: Something similiar to XFire...
« Reply #2 on: November 25, 2008, 05:53 PM »
any word on 64 bit windows vista support?
CodeByter.com - http://www.codebyter.com

Original address: https://www.donationcoder.com/forum/index.php?topic=15196.0