[SDL] SDL and Win32 processes

James Buchwald jamestheprogrammer at gmail.com
Thu Oct 4 18:26:03 PDT 2007


If you want to go with the separate window method, you might want to
consider opening a named pipe, launching the console sub-process, and
communicating over that. I think (though I'm not entirely sure, its been a
while since I worked with Win32 named pipes) that it would require less code
than implementing something over TCP/IP.

On 10/1/07, Josh Matthews <mrlachatte at gmail.com> wrote:
>
> For a game I'm writing, I created a simple console emulator that draws
> text on screen and allows user input, and I have it running in a
> separate thread from the main game.  It's rather simple, and just
> requires a single mutex to keep the game from writing to the log at
> the same time as it's being read.
>
> On 10/1/07, Roger <roger.levy at gmail.com> wrote:
> > Hi,
> >
> > I want to create an application where a piece of code associated with
> the SDL
> > window runs continually, drawing the frame and processing input, whether
> it is
> > the top window or not.  (Kind of like the way a game or emulator will
> continue
> > running in the background, but in this I want it to be part of the same
> > application.)
> >
> > I have a console window that I want to still be able to type into and
> debug the
> > program with while it runs.  I'd like to be able to treat the background
> process
> > like a callback that is executed once each new frame.
> >
> > Does anyone have any advice on how it might be possible to do this?
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at lists.libsdl.org
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> >
>
>
> --
> Cheers,
> Josh
>
> PGP: http://revvy.box43.net/Josh_Matthews.asc
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>



-- 
su; cd /; rm -rf *

(not responsible for anything that happens if you're foolish enough to type
that)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20071004/6cbeac6e/attachment.html 


More information about the SDL mailing list