Re: [AD] [WIN] dll export file patch |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Bob <ohannessian@xxxxxxxxxx> wrote:
> Although I think he meant that we should do this inside allegro_init().
> However, this woul cause problems for people who shut down Allegro
> temporarily and re-init it later - we don't want to load the DLL twice.
No what I meant was that LoadLibrary() would have to be called before any of
the AL_* declarations in allegro.h, aintern.h etc. That's required for
LoadProcAddress() to work, otherwise it will just return NULL. It might not
be elegant but who cares as long as it solves a problem?
-henrik