Re: [Xmame] Programming (C++): How do I capture the xmame output in a string?

2004-04-11 Thread Kingsley
Pieter Hulshoff wrote: Anyone? I've Googled around for a bit, but I haven't been able to find an answer yet, and I prefer not to use a temporary file. I'm working on MAMEd V0.4 right now, and want to stop using the gamelist file, so I need to somehow capture the xmame -listinfo output in a strin

Re: [Xmame] Programming (C++): How do I capture the xmame output in a string?

2004-04-10 Thread Simon Roby
The "true Unix way" would be to pipe the xmame output to your program using your shell: $ xmame.x11 -listinfo | mamed Then read from standard input in your program. On April 10, 2004 0339, Pieter Hulshoff wrote: > Anyone? I've Googled around for a bit, but I haven't been able to find an > answe

Re: [Xmame] Programming (C++): How do I capture the xmame output in a string?

2004-04-10 Thread Martin White
Sorry for getting a bit OT with this, but what framework are you guys using for the actual front end? I'm trying to make a start on a decent front end for the GP32 linker (yes, nothing to do with xmame i'm afraid). I'm using kdevelop, so i'm going into the new project dialogue. If i pick a "kde

Re: [Xmame] Programming (C++): How do I capture the xmame output in a string?

2004-04-10 Thread Pieter Hulshoff
On Saturday 10 April 2004 09:47, R. Reucher wrote: > I did that using Qt's QProcess class for the QMamecat frontend. If you need > any additional info, let me know... On Saturday 10 April 2004 10:15, smf wrote: > I normally use popen(), you give it a command and it returns a file stream. > I don't

Re: [Xmame] Programming (C++): How do I capture the xmame output in a string?

2004-04-10 Thread smf
ame] Programming (C++): How do I capture the xmame output in a string? > Anyone? I've Googled around for a bit, but I haven't been able to find an > answer yet, and I prefer not to use a temporary file. I'm working on MAMEd > V0.4 right now, and want to stop using the game

[Xmame] Programming (C++): How do I capture the xmame output in a string?

2004-04-10 Thread Pieter Hulshoff
Anyone? I've Googled around for a bit, but I haven't been able to find an answer yet, and I prefer not to use a temporary file. I'm working on MAMEd V0.4 right now, and want to stop using the gamelist file, so I need to somehow capture the xmame -listinfo output in a string. Regards, Pieter Hu

Re: [Xmame] Programming (C++): How do I capture the xmame output in a string?

2004-04-10 Thread R. Reucher
Pieter Hulshoff wrote: > Anyone? I've Googled around for a bit, but I haven't been able to find an > answer yet, and I prefer not to use a temporary file. I'm working on MAMEd > V0.4 right now, and want to stop using the gamelist file, so I need to > somehow capture the xmame -listinfo output in a