How can I tell if I am a DLL or an EXE?

From: Robert Oschler (no_replies_at_fake_email_address.invalid)
Date: 10/29/03


Date: Wed, 29 Oct 2003 15:29:42 -0500

I want to write code for some routines I will add to my "miscellaneous"
module that works just as well whether or not the code is part of a DLL or
an EXE. Is there a function that I can call that will tell me (in Delph 6
sp 2) whether I am running as a DLL or an EXE?

thx

--
Robert Oschler
http://www.dog-images.com -- Devoted to providing free info on the health,
nutrition, and training of dogs.


Relevant Pages

  • Re: msvbvm60.dll
    ... >noticed that that is a very large file and there's a lot of routines ... calls to the Windows core DLLs with calls to its own code ... Delphi, then unpack the VB EXE and the DLL, jigger the path in the ...
    (microsoft.public.vb.general.discussion)
  • Re: Editors
    ... some strip them on exe files by default. ... "preferred base address" and, yup, relocations are completely ... DLL files, though, aren't loaded into their own address space but are ... EXE's "entry-point", though, is not "special" in that it's just an ...
    (alt.lang.asm)
  • Re: DLL pass vector by value crash
    ... The prototype for testfunc is a by-value copy, so it has to make a copy of the value. ... Are you using static linking for either the .exe (if so, it probably won't work correctly, ... clearly using the shared CRT DLL for the DLL you are constructing. ... no crash occurs in either config. ...
    (microsoft.public.vc.mfc)
  • Re: DLL pass vector by value crash
    ... stack of the exe and may allocate default member element on the exe heap. ... If this is a dangerous situation, the simple app I set up calling testFunc() ... in a dll did not crash. ... msvcr90.dll!free and access the source code of free.c. ...
    (microsoft.public.vc.mfc)
  • Re: Releasing my VB.NET app over the intranet
    ... of the primary EXE and when compiled I am copying the contents ... the directory and open a browser on the web server and type ... > another dll, we need to put the dll in the same directory, so that the clr ... > The executable will be downloaded to the assembly download cache on the ...
    (microsoft.public.dotnet.framework)