topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday March 18, 2024, 10:29 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Something similiar to XFire...  (Read 5465 times)

Codebyte

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 160
  • "Premature Optimization is the root of all evil."
    • View Profile
    • CodeByter.com
    • Donate to Member
Something similiar to XFire...
« on: October 02, 2008, 01: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
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Re: Something similiar to XFire...
« Reply #1 on: November 03, 2008, 11:59 PM »
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

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 160
  • "Premature Optimization is the root of all evil."
    • View Profile
    • CodeByter.com
    • Donate to Member
Re: Something similiar to XFire...
« Reply #2 on: November 25, 2008, 11:53 AM »
any word on 64 bit windows vista support?
CodeByter.com - http://www.codebyter.com