?
Solved

Terminate DirectX Applications (games)

Posted on 2003-10-26
6
Medium Priority
?
163 Views
Last Modified: 2010-04-05
Anybody knows how to safely terminate DirectX applications (games) within code? Thanks!
0
Comment
Question by:SoulessZero
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 8

Accepted Solution

by:
gmayo earned 200 total points
ID: 9623524
Your own app or another app?

If the former:
  // To create
  D3D8 := Direct3DCreate9(D3D_SDK_VERSION);

  // To destroy
  D3D8 := nil;


Geoff M.
0
 

Author Comment

by:SoulessZero
ID: 9625853
Thanks, sorry i didn't make it clear.

I mean from my own application. Co'z I will be write an Internet Cafe software that will take control of Client PC, if user's time is up then Server has to send some string commands to Client program (runnning on Client PC) and tell client program to terminate any running DirectX games safely.
0
 
LVL 8

Expert Comment

by:gmayo
ID: 9627621
Oh, you want to tell *other* DX apps to close. Can you just send a WM_QUIT to the window?

Geoff M.
0
 

Author Comment

by:SoulessZero
ID: 9648481
I  know there is a trick that can "force" DirectX app to terminate by calling some function of DirectX Helper. but i forgot in what website... :(
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month12 days, 23 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question