Advertisement

HUGE MSVC++ Problem

Started by March 01, 2001 06:31 PM
-1 comments, last by Ptim 23 years, 11 months ago
Well, My program accidentally wrote some data outside video memory, and apparently corrupted my registry as I had to reinstall a lot of programs and reconfigure my desktop settings. I did some reinstalling, and now when I try to run any programs i created using DX7 (installed the DX8 SDK and so forth), they stop on this line:
    

surf->GetDC(&hdc);

    
This is in my load bitmap to an IDIRECTDRAWSURFACE7 (which is what surf is) function. The line previous to this calls a routine which creates the surface. I've tried creating the surface in video memory, and system memory. No luck. It compiles ok, but closes without displaying anything. If I try to get an HRESULT from the line it returns garbage, no valid codes. After uninstalling MSVC++ 6.0 and then reinstalling, I checked the include libraries and headers, and re-added the DX files at the top, but no dice. Anybody have any ideas? Ptim There is no off position on the genius switch Edited by - ptim on March 1, 2001 7:33:07 PM
-=-=-=-A M I N O T M E R C I F U L ! ? ! ?

This topic is closed to new replies.

Advertisement