Re: C coding guidelines



Richard Heathfield wrote:
In <I2Mpm.179471$0e4.110025@xxxxxxxxxxxx>, Tech07 wrote:

Richard Heathfield wrote:

<snip>

The entry point(s) of a DLL must be a function (or functions)
within that DLL.

<snip>

It doesn't matter what text is in your source file.

Actually, I think it /does/ matter in the sense that the true entry
point into source code is a part of the source code. Nevertheless,
for *your* argument it *does* matter what is in the generated DLL
itself. Recognising this, I posted the output of strings(1) on the
.dll file itself, in a reply some days ago which you should still be
able to find, upthread. It contains no DLLMain.

What matters is
what exists after the compiler/linker get done with it.

Right. And after the compiler (not linker, obviously, because it's a
library) is done with it, it contains no functions whatsoever with
the name DLLMain or anything like that name.

Because the compiler included it for you and is using the default DLLMain.


.



Relevant Pages

  • Re: C coding guidelines
    ... within that DLL. ... point into source code is a part of the source code. ... what exists after the compiler/linker get done with it. ...
    (comp.lang.c)
  • Re: msvcp90d.dll and msvcr90d.dll
    ... compiler, you can't use a template unless you have source code for it. ... I think the root reason why STL can not be provided in DLL is because, ...
    (microsoft.public.vc.language)
  • Re: FEX file types
    ... There have been important examples on the FEX, which are stored as DLL, e.g. "uigetfiles": ... Nevertheless, if the source code is available, it is not sure, that the compiler installed on the user's machine creates a mex file with identical behaviour. ...
    (comp.soft-sys.matlab)
  • Re: FEX file types
    ... There have been important examples on the FEX, which are stored as DLL, e.g. "uigetfiles": ... Nevertheless, if the source code is available, it is not sure, that the compiler installed on the user's machine creates a mex file with identical behaviour. ...
    (comp.soft-sys.matlab)
  • Exporting unmangled name from C DLL
    ... I'm new to the Microsoft C compiler and I'm having a problem. ... build a DLL from C source code and the compiler is exporting mangled names. ... Can anyone explain how I can prevent the mangling? ...
    (microsoft.public.vc.language)