Re: C coding guidelines



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.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
"Usenet is a strange place" - dmr 29 July 1999
Sig line vacant - apply within
.



Relevant Pages

  • Re: C coding guidelines
    ... within that DLL. ... point into source code is a part of the source code. ... Because the compiler included it for you and is using the default DLLMain. ...
    (comp.lang.c)
  • Re: D2007 - No Way. No How.
    ... to backup to protect my source code. ... longer period of time, then this is of more concern. ... I would expect that CodeGear will not release any details of the ...
    (borland.public.delphi.non-technical)
  • Re: Mapping (CoBOL) Methodologies to Problem Domains
    ... source code, whereas the first list regarded source code as almost irrelevant. ... truck to move money in a different direction. ... should study war histories to learn the causes of war victories and defeats." ...
    (comp.lang.cobol)
  • Re: Passing Objects as Parameters
    ... > OOD principle I also am experiencing the exact opposite of what it is ... Source code classes are "owned" by ... Other programmers can submit patches to the code owner. ...
    (comp.lang.java.programmer)
  • Re: how not to expose source code
    ... it's rather easy to take a dll and pop it into full source code ... the salamagar tool even goes as far as ... Compiled dlls have MSIL code but not the real source code. ... The code would compile to a ...
    (microsoft.public.dotnet.framework.aspnet)