Re: [AD] 4.9 on MSVC 2008

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On July 11, 2008, Thomas Fjellstrom wrote:
>I wasn't aware that Win32 PE-COFF DLLs were capable of anything more complex than lookup by index.

For windows I think it can be done with LoadDll, GetFunction and FreeDll, but this would mean you would have to create something like al_dll_vtable and fill it using a new function like al_init_dll which could be called with the magic main macro...  Just keep a list of dll function names in char *al_dll_function_list[] which would be in a source file to be included into the user program and left out during static builds...  This would meen each program would only load the functions it knows about and wouldn't exactly break backwards compatability... Only when the arguments of a function changed would the function become incompatible with previous binarys and not when the order changed...

It would actually be a lot of work... I don't know... Just thinking out loud.  ;p

--
Ron Novy



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/