function pointers & DLL's

Alan Hourihane alanh@fairlite.demon.co.uk
Sun May 6 14:29:00 GMT 2001


Hi,
Wonder if someone can shed some light or offer an alternative way of
doing things....Here goes...
I've got a DLL which uses about function pointers of the form....
void (*func1)();
void (*func2)();
I can create the DLL and export them and I get the normal references of
_func1
_func2
_imp__func1
_imp__func2
So, now in another DLL I've got to do this
__declspec(dllimport) void (*func1)();
__declspec(dllimport) void (*func2)();
To get the function pointers into the correct places.
Everything works fine. But what I'm trying to do is find a way at the linker
stage that negates me having to make these __declspec statements. Is there
any way this is possible ?
Thanks.
Alan.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /