public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jens Yllman <jens.yllman@uniweb.se>
To: Carlos Albar-Diaz <carlosad@yahoo.com>, gnu-win32@cygnus.com
Subject: Re: DLL help needed
Date: Mon, 09 Nov 1998 07:48:00 -0000	[thread overview]
Message-ID: <3646EB36.35E244A9@uniweb.se> (raw)
In-Reply-To: <19981108103349.9835.qmail@findmail.com>

 Hello,

 I'm quite new to use gcc to compile on the win32 platform. So I'm not
sure I can help you. But one of the big problems is namemangling.
Especially when we compile C++ programs. That's why you use the extern
"C" syntax on functions that should use C namemangling. But when it is
win32 functions they should be using pascal namemangling and parameter
passing. This is only if the system is to call the function. And
probably MS Excel whan the pascal namemangling. And what I understand is
that __stdcall is used to get pascal namemangling and parameter passing. 
 What exactly is the problem? Do you get any error messages? How does
the names look in the .dll? Have you exported the functions? I'm not
sure the __stdcall does that. I guess you link a .def file with the .dll
to export the functions. Have you looked att the site for mingw32???

 Jens Yllman

Carlos Albar-Diaz wrote:
> 
> I am not able to use my mingw32-built DLLs from MS Excel.  The problem seems to be the DLLs need to use the __stdcall convention, and the instructions/makefiles I have are for _cdecl convention.
> 
> How do I make a dll from an .o file that contains a function defined woth __stdcall? How do I find out the mangling of the function name?  Mumit's makefiles do all this OK until I put __stdcall in the function.
> 
> I have browsed the files but none of the "recipes" I saw  work with __stdcall.
> 
> I will greatly appreciate your help.
> 
> Carlos
> 
> -----
> Free e-mail group hosting at http://www.eGroups.com/
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
------------------------------------------------------------
Uniweb AB                            Phone:  +46 8 626 42 00
P O Box 745                          FAX:    +46 8 626 42 01
S-191 27  SOLLENTUNA
SWEDEN                               http://www.uniweb.se/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

  reply	other threads:[~1998-11-09  7:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-08  2:27 Carlos Albar-Diaz
1998-11-09  7:48 ` Jens Yllman [this message]
1998-11-14  3:05   ` Carlos Albar-Diaz
1998-11-14  8:41     ` Mumit Khan
  -- strict thread matches above, loose matches on Subject: below --
1998-11-10 19:28 Murugan Muthusamy
1998-11-08  2:27 Carlos Albar-Diaz
1998-11-08  2:27 Carlos Albar-Diaz
     [not found] <349f7828.48009513@smtp.netzone.com>
1997-12-23  9:32 ` Richard Stanton
1997-12-22 13:23 Richard Stanton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3646EB36.35E244A9@uniweb.se \
    --to=jens.yllman@uniweb.se \
    --cc=carlosad@yahoo.com \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).