benjamin_cail_scott wrote:
> --- In [email protected], "Brett McCoy" <[EMAIL PROTECTED]> wrote:
>> On Tue, May 27, 2008 at 5:50 PM, Benjamin Scott
>> <[EMAIL PROTECTED]> wrote:
>>
>>> Correct me, if I'm wrong, BUT
>>> Only the OS or a Program can
>>> call, such a Executable?
>> What do you mean? An executable is anything that can be translated
>> into machine code (whether compiled or interpreted), loaded into
>> memory and executed by the CPU. This can be C programs, Perl 
> scripts,
>> shell scripts, dynamic link libraries, etc.
>>
>> -- Brett
>> ------------------------------------------------------------
>> "In the rhythm of music a secret is hidden;
>>  If I were to divulge it, it would overturn the world."
>>  -- Jelaleddin Rumi
>>
> 
> So translation would be: I'm correct.
> A executable without a main would be
> a Dynamic Link Library.

You could write a main() function in a DLL but that doesn't mean it will 
ever get called.  And DLLs have special entry points (e.g. DllMain()) 
that get called by the Windows Loader *IF* the export DllMain() exists. 
  But even then, a DLL _still_ has an entry point that gets called when 
the DLL is loaded by the loader (which goes through the usual 
initialization routine of things like initializing global objects).

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to