| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Sun, 6 May 2001 22:30:12 +0100 |
| From: | Alan Hourihane <alanh AT fairlite DOT demon DOT co DOT uk> |
| To: | cygwin AT cygwin DOT com |
| Subject: | function pointers & DLL's |
| Message-ID: | <20010506223012.D861@valinux.com> |
| Mime-Version: | 1.0 |
| User-Agent: | Mutt/1.2.5i |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |