force windowed mode

This is a discussion on force windowed mode within the Game Programming forums, part of the General Programming Boards category; i found a few programs i made back in the VB days.. anyway, 1 of them is something i been ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    288

    force windowed mode

    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)

  2. #2
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    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.
    That sounds quite fishy. Normally I would say this is because your programs use another "release" dll, but that would probably be labeled ddrawd.dll.

    I don't think there is a way to force a program to stay windowed other than the way you tried. Maybe you can try an emulator that lets you use that option. Although I doubt you'll find a DirectDraw emulator on a PC. Do you have a Mac handy?

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    288
    nope no mac i got a linux if thatll help..

    dont worry, my intentions are pure of heart..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  2. DX Windowed Mode Double Buffering
    By curlious in forum Game Programming
    Replies: 2
    Last Post: 10-10-2003, 09:16 AM
  3. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 05:10 AM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 11:14 PM
  5. Windowed Mode Output
    By phatslug in forum Game Programming
    Replies: 5
    Last Post: 06-13-2002, 10:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21