Jump to content
  • Advertisement
Sign in to follow this  

Problem with Fraps-like programs

This topic is 5196 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I'm have a little problem with apps like Fraps, or NVPerfHUD, which need to have access to my DirectX device. When i run my program, in CreateWindowEx throws an access violation (only if Fraps-like program is still launched). What i'm doing wrong ? I'm registering class with :
  wc.cbSize = sizeof (WNDCLASSEX);
  wc.style = CS_CLASSDC;
  wc.lpfnWndProc = WindowProc;
  wc.cbClsExtra = 0;
  wc.cbWndExtra = 0;
  wc.hInstance = hInstance;
  wc.hIcon = LoadIcon (NULL, IDI_APPLICATION);
  wc.hCursor = (HCURSOR)LoadCursor (NULL, IDC_ARROW);
  wc.hbrBackground = (HBRUSH)GetStockObject (BLACK_BRUSH);
  wc.lpszMenuName = NULL;
  wc.lpszClassName = CLASSNAME;
  wc.hIconSm = NULL;

  if (!RegisterClassEx (&wc))
    return false;
  return true;
and create window with :
  wnd = CreateWindowEx (NULL, CLASSNAME, TEXT ("Full Of Fire Game"), 
      0, 0, width, height, GetDesktopWindow (), NULL, hInstance, NULL);

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!