Board index » cppbuilder » DirectX - How To Enter Exclusive Mode?

DirectX - How To Enter Exclusive Mode?

I'm using Builder 3 to create a DirectX application.  I have obtained
examples on how to setup simple directdraw surfaces, and I can run the
executable provided, but when I compile it myself, I get a message "Program
must be run in exclusive mode".

How do you setup a program to use exclusive mode?  I cannot find any option
in the project or environment options resembling this, and no reference in
the help file.

Thank you for any help you can provide,
Kevin Brown

 

Re:DirectX - How To Enter Exclusive Mode?


Quote
Kevin Brown wrote:

> I'm using Builder 3 to create a DirectX application.  I have obtained
> examples on how to setup simple directdraw surfaces, and I can run the
> executable provided, but when I compile it myself, I get a message "Program
> must be run in exclusive mode".

> How do you setup a program to use exclusive mode?  I cannot find any option
> in the project or environment options resembling this, and no reference in
> the help file.

> Thank you for any help you can provide,
> Kevin Brown

You're looking in the wrong help files, I think.  Exclusive mode has
nothing to do with the compiler options.  It's a DX thing.  You enter
exclusive mode with the function SetCooperativeLevel(), which you should
find in the DX help docs.

HTH

Ron
--
So Brain, whatdya wanna do tonight?
Same thing we do every night, Pinky.  Try to take over the world!

Re:DirectX - How To Enter Exclusive Mode?


Quote
Kevin Brown <kevin.br...@unhinged.com> wrote:
>How do you setup a program to use exclusive mode?  I cannot find any option
>in the project or environment options resembling this,
>and no reference in the help file.

 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I find this hard to believe. Open up your DX5 docs. Start with the chapter
on DirectDraw essentials. It describes exclusive mode on the second page.
Use IDirectDraw::SetCooperativeLevel.

--
Lucian Wischik, Queens' College, Cambridge CB3 9ET. ljw1...@cam.ac.uk

Re:DirectX - How To Enter Exclusive Mode?


I can't help you because i want you help me :)
How do you use directx with c++ builder.
Does a compent exist ?
thanks
--
*********************************
      ed...@worldnet.net
http://www.worldnet.net/~edwin
*********************************

Quote
> How do you setup a program to use exclusive mode?  I cannot find any
option
> in the project or environment options resembling this, and no reference
in
> the help file.

Re:DirectX - How To Enter Exclusive Mode?


I cover using DirectDraw and Direct3D Retained Mode with Builder in the
soon to be released "Charlie Calvert's Borland C++ Builder Unleashed"
from SAMS/Borland Press. I will announce when it is available.
//jt

Other Threads