944,082 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2259
  • C++ RSS
Oct 13th, 2006
0

Front End Programming

Expand Post »
Hello, I am kinda getting into MAME arcades and what not, and My questions is related to that.

I have found many front-ends for mame that run on window and linux. There are many great ones, but none of them have one particular feature I am looking for.

The feature I want is a timer. I want to have a timer that controls gameplay. As long as there is time left, you can exit one game, and enter another, as many times as you want, as long as there is time left, without problems. But when the timer is up, you can no longer play games, and functionality would cease to some point, I am not exactly sure how much though, I just know I dont want any more games played after that point.

I am thinking about using the best frontend I can find, and then adding my feature to it. Would this best be done by getting an open source front end, and then adding my code to it, or should I write a Frontend for a Frontend.

I plan on using C++, hopefully in a linux enviroment, but it might turnout to be windows. I written several programs (they were nothing crazy) but they were entirely independent. How do I begin writing a program, that controls another programs actions, but does not actually change the actions, just stops and starts them.

THen I also have to ask about multitasking. How do I make sure that my program gets very little priority, but just enough to watch another program.

Maybe Im in over my head, but I would liike to think not. I understand many programming concepts well, I have just never had to make a program that worked with another one simultaniously. If someone could attempt to answer my questions, or if this is actually a pretty complex topic, guide me in such a direction where I can start to learn.

Thank you
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
petzoldt01 is offline Offline
49 posts
since May 2006
Oct 13th, 2006
0

Re: Front End Programming

>>How do I make sure that my program gets very little priority, but just enough to watch another program

This is operating system dependent. In MS-Windows you can call SetThreadPriority() -- see MSDN for details. I don't know how its done in *nix.

Can't answer your other questions. sorry.
Last edited by Ancient Dragon; Oct 13th, 2006 at 1:09 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,957 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: How to do 64bit fstream file access in Linux
Next Thread in C++ Forum Timeline: string in c++,segmentation fault,thread





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC