If you just write a dll, with a exportet function, say foo() which does what
main would normally do, and then loads this in another app, then it works.
You dont have to do anything else than what you would normally do, to
I did this and here is an example:
Im not shure why this works, since there is no main function in the dll?
Note the workaround in dllMain. Important if you want to load and reload the
I did this from a 3rd party product that is a gui for creating visual basic
scripts. Worked fine as well.
If you create a visual basic script that uses the dll from the example in
the url, you should be able to start the SDL-enabled routine do_test().
You should be aware that ressource conficts might arise if you use SDL in a
plugin, and the main program uses a ressource, eg. keyboard through
-Martin>From: Gerald Brandt
Reply-To: “A list for developers using the SDL library.
To: sdl at libsdl.org
Subject: [SDL] Windows and mouse events
Date: Mon, 21 Feb 2005 14:30:31 -0600
I did some searching on the archived list, but I didn’t come up with a
If a have a plain Win32 app, or a Visual Basic app, and my SDL stuff is in
a DLL, is there a way for the SDL stuff to get mouse and keyboard events
from it’s window?
SDL mailing list
SDL at libsdl.org
F? alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/