🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #640

Exporting a __stdcall function from a CodeWarrior .DLL

#640
From: Jonathan Hoyle
Date: Wed, 05 Nov 2003 23:11
16 lines
1666 bytes
I have a CodeWarrior .DLL project on Windows that I am trying to
exporting some C functions from.  The only problem is that they are
__stdcall functions, not __cdeclspec functions.  What is the protocol
for doing this?  I understand that I need to create an .exp or .def
file containing them, but I do not see the format of this documented
anywhere.

If a function has say the following prototype:

short __stdcall foo(short x);

What is the proper syntax for exporting this from a CodeWarrior .DLL? 
And are there any examples out there that can show me how it is done?

Jonathan Hoyle
Gene Codes Corporation
Technical Details
Message-ID: <bc8cf544.0311051511.5622d288@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,df2feb09e2571cfb,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: fd047,df2feb09e2571cfb,start
X-Google-Attributes: gidfd047,public
X-Google-Thread: f635e,df2feb09e2571cfb,start
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2003-11-05 15:11:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: jonhoyle@mac.com (Jonathan Hoyle)
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.windows,codewarrior.mac
Subject: Exporting a __stdcall function from a CodeWarrior .DLL
Date: 5 Nov 2003 15:11:00 -0800
Organization: http://groups.google.com
Lines: 16
Message-ID: <bc8cf544.0311051511.5622d288@posting.google.com>
NNTP-Posting-Host: 67.92.189.234
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1068073860 21783 127.0.0.1 (5 Nov 2003 23:11:00 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 5 Nov 2003 23:11:00 +0000 (UTC)