i found a few programs i made back in the VB days.. anyway, 1 of them is something i been looking for a while now.. it uses directx 7.. but the thing is, everytime i run the program, and when i exit it (its fullscreen), my monitor gets disfigured.. literally, i cant do anything, i can barely see anything, i have to restart my computer.
im thinking it might be a problem with my graphic card.. (fx 5600), i thought that maybe a quick fix would be to force it to stay in windowed mode. i dont have the source anymore, or i do, but i cant find it. so what i did was, i hooked DirectDrawCreate() in ddraw.dll and i was going to modify the parameters passed to it. But for some reason, it hooks in some programs (the directx 7 samples all work fine) but my program doesnt get hooked at all.
so i was wondering, how can i force a program to use windowed mode instead of fullscreen? (i also tried using d3dspy, but it turns out that only works for directx 9)