delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/07/25/09:23:09

From: pete AT horus DOT cix DOT co DOT uk (Pete Jordan)
Subject: Re: Mixing GNU-Win32 and MSVC++
25 Jul 1998 09:23:09 -0700 :
Message-ID: <memo.19980725111535.117B.cygnus.gnu-win32@horus.horus.cix.co.uk>
References: <35b5fe15 DOT 54129804 AT smtp DOT goodnet DOT com>
Reply-To: gnu-win32 AT cygnus DOT com
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Mikey <jeffdbREMOVETHIS AT goodnet DOT com> wrote:

> Did you try using -k on the dlltool command line when creating your 
> .exp file?

Tried it and it didn't help.

> otherwise you will need to do
> EXPORTS
> _funk AT 1
> _funk = _funk AT 1

That did the trick, or rather just

EXPORT
	funk=funk AT 4

as the underscores are handled automatically.

I've singularly failed to get things to work the other way (accessing 
functions in the main program from my plugin), but I've worked round that 
by using dynamic linkage (LoadLibrary()/ImportProc()/UnloadLibrary()).

Next step is linking in Perl... :)

Thanks for your help,

Pete Jordan ~ Horus Communications Ltd ~ http://www.horus.cix.co.uk/

"As soon as we have defined something, we have ipso facto created
 three things: whatever is included in our definition, whatever is
 not included in our definition, and the relationship between them."
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019