Re: Win32 DLL def file question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Which is one of the "very specialized purposes". Since the OP's question was rather
general, I gave a generic answer.
joe

On Thu, 7 Aug 2008 09:24:44 +0200, "Giovanni Dicanio" <gdicanio@_NOSPAM_email_DOT_it>
wrote:


"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> ha scritto nel messaggio
news:eb3l949d0n4gd0brqr0lipk7oe3sdsvems@xxxxxxxxxx
def files are largely a dead technology and are not used very often. They
serve very
specialized purposes which are not actually necessary nearly all the time
these days.

I think that there is a case in which DEF files are important: when you want
to export C functions with __stdcall calling convention.
If you don't use DEF files, the __stdcall causes the function to be
decorated as _MyFunction@<bytes...>

http://msdn.microsoft.com/en-us/library/zxk0tw93(VS.80).aspx

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Win32 DLL def file question
    ... serve very ... specialized purposes which are not actually necessary nearly all the time ... I think that there is a case in which DEF files are important: ... to export C functions with __stdcall calling convention. ...
    (microsoft.public.vc.mfc)
  • Re: Win32 DLL def file question
    ... specialized purposes which are not actually necessary nearly all the time these days. ... want to export C functions with __stdcall calling convention. ... I never liked used DEF files and I saw no need when I used MFC. ...
    (microsoft.public.vc.mfc)