"Alon Bar-Lev" <alon.bar...@gmail.com> wrote:

These macros are soooooooo ugly!

I tend to agree; had to read the code closely. But this hack was cool:

union { FUNC ## _fn *type; FARPROC *ptr; } u = { .type = &(LIB ## _ ## FUNC) }; ... *(u.ptr) = GetProcAddress (lib, (#FUNC));
Where did you get that Heiko?

--gv


Reply via email to