Making a Cross-Compatible

Hi,
I am trying to figer this out… In WIN32 is can do Error() (or something I cant remember right now) but that wont work on all OS… What do I use for all OS? For anything?

Thanks,
Andrew
Church Punks! Truth Rebellion! Audio A!

I mean MessageBox() I dont know what I was thinking… I made my own function called error (I think that is what it was)

Thanks,
Andrew
Church Punks! Truth Rebellion! Audio A!----- Original Message -----
From: Andrew Balmos
To: sdl at libsdl.org
Sent: Tuesday, September 30, 2003 6:23 PM
Subject: [SDL] Making a Cross-Compatible

Hi,
I am trying to figer this out… In WIN32 is can do Error() (or something I cant remember right now) but that wont work on all OS… What do I use for all OS? For anything?

Thanks,
Andrew
Church Punks! Truth Rebellion! Audio A!

At 07:00 PM 30/09/2003 -0700, you wrote:

I mean MessageBox() I dont know what I was thinking… I made my own
function called error (I think that is what it was)

I’m pretty sure that SDL wouldn’t do anything like this, this is a more a
GUI thing, in which case I recommend wxWindows as being your best bet to
stay portable (www.wxWindows.org)

HTH,

Neil.

Any way to make wxWindows work with SDL… I don’t need to run OpenGL though SDL I can run it though wxWindows for the OpenGL development but adding support for audio, CD-Rom, ect… Do I need anything added? Or just use SDL commands while linking SDL Libraries to the file too?

Andrew
Church Punks! Truth Rebellion! Audio A!----- Original Message -----
From: Neil Brown
Newsgroups: gmane.comp.lib.sdl
Sent: Wednesday, October 01, 2003 1:43 AM
Subject: Re: Making a Cross-Compatible

At 07:00 PM 30/09/2003 -0700, you wrote:

I mean MessageBox() I dont know what I was thinking... I made my own function called error (I think that is what it was)

I’m pretty sure that SDL wouldn’t do anything like this, this is a more a GUI thing, in which case I recommend wxWindows as being your best bet to stay portable (www.wxWindows.org)

HTH,

Neil.

At 07:57 PM 01/10/2003 -0700, you wrote:

Any way to make wxWindows work with SDL… I don’t need to run OpenGL
though SDL I can run it though wxWindows for the OpenGL development but
adding support for audio, CD-Rom, ect… Do I need anything added? Or just
use SDL commands while linking SDL Libraries to the file too?

Depends on your application. If you want wxWindows for MessageBox I think
you just link to it and SDL and call the function. I use wxWindows for
setting dialogs then launch SDL to run the game. So yes I would say just
link to both libraries and use them where you need them, though see
wxWindows’ forums etc for help on rhe GUI side of things rather than this list.

HTH,

Neil.

I managed to embed a SDL_Surface into a wxWindows frame with the
WINDOWID hack, similar to the gtk demo on the SDL page. It is a dirty
hack, but works well.

I have one question though. I understand that SDL can only manage one
video screen within one process. Please correct me if I am mistaken.
However, my application relies on multiple windows. Currently I only
provide one SDL window and the others in wxWindows OpenGL or optional
with plain (ugly) wxWindows GDI. Is there a way to get more than one SDL
screens within one application?

Thanks in advance,

PeterAm Do, den 02.10.2003 schrieb Neil Brown um 10:39:

Depends on your application. If you want wxWindows for MessageBox I
think you just link to it and SDL and call the function. I use
wxWindows for setting dialogs then launch SDL to run the game. So yes
I would say just link to both libraries and use them where you need
them, though see wxWindows’ forums etc for help on rhe GUI side of
things rather than this list.

Thanks for the help that is what I though that is all I need to do…

You made my day a hack of a alot easier!

Andrew
Church Punks! Truth Rebellion! Audio A!> ----- Original Message -----

From: zotan@web.de (Peter Strempel)
Newsgroups: gmane.comp.lib.sdl
Sent: Thursday, October 02, 2003 8:00 AM
Subject: Re: Re: Making a Cross-Compatible

Am Do, den 02.10.2003 schrieb Neil Brown um 10:39:

Depends on your application. If you want wxWindows for MessageBox I
think you just link to it and SDL and call the function. I use
wxWindows for setting dialogs then launch SDL to run the game. So yes
I would say just link to both libraries and use them where you need
them, though see wxWindows’ forums etc for help on rhe GUI side of
things rather than this list.

I managed to embed a SDL_Surface into a wxWindows frame with the
WINDOWID hack, similar to the gtk demo on the SDL page. It is a dirty
hack, but works well.

I have one question though. I understand that SDL can only manage one
video screen within one process. Please correct me if I am mistaken.
However, my application relies on multiple windows. Currently I only
provide one SDL window and the others in wxWindows OpenGL or optional
with plain (ugly) wxWindows GDI. Is there a way to get more than one SDL
screens within one application?

Thanks in advance,

Peter