This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
function pointers & DLL's
- To: cygwin at cygwin dot com
- Subject: function pointers & DLL's
- From: Alan Hourihane <alanh at fairlite dot demon dot co dot uk>
- Date: Sun, 6 May 2001 22:30:12 +0100
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