[SDL] Entry point of the DLL
Nicolai Haehnle
prefect_ at gmx.net
Mon Nov 17 10:22:01 PST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On Monday 17 November 2003 09:58, hassan boulmarouf wrote:
> I see that the SDL doesn't have it own Dllmain but
> uses that found inside Visual Studio.
> How this is done ?
> I always though we should provide our own Dllmain.
This should only be necessary if a DLL needs implicit initialization at
loading time. For example, the C++ automatically creates some "magic"
dllmain code for DLLs so that global constructors are called.
However, since SDL is initialized *explicitly*, by calling SDL_Init(), a
dllmain is not necessary.
cu,
Nicolai
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/uRIosxPozBga0lwRAuAjAKC3j3jMZ0HVSSAVMRuUn8yCaGd0oQCdFu9G
DKg0bMqR+bgYOVZzA2fEYJQ=
=KUXJ
-----END PGP SIGNATURE-----
More information about the SDL
mailing list