PDA

Click to See Complete Forum and Search --> : DirectX in multiple windows???!?!?!?


danielkw
Nov 28th, 2000, 10:59 AM
I am new to DirectX. Can anyone explain to me how to setup DirectX if I would like to use it in many windows. Should I set up the DirectX7 and DirectDraw7 vars as public vars in a module or should I declare individual DirectX vars to each of the windows (general declarations)?

Right now, every one of my windows has individual DirectX vars but if have come across some problems. I have a main window, which uses DirectX, and I have an about window, also using DirectX. When I show the About window (by clicking a button in the main window) it displays some texts using directdraw animations. The problems is that when I then click Ok to close the about box something weird happens. The aboutbox closes but the textanimation continues to play, but on the mainscreen... "What the hell?", I said to my self... What's wrong and how do I solve this?