[SDL] Entry point of the DLL
prefect_ at gmx.net
Mon Nov 17 10:22:01 PST 2003
-----BEGIN PGP SIGNED MESSAGE-----
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the SDL