Is it possible to find in what language a dll has been programmed?

Discussion in 'C++' started by Santi, Jul 12, 2004.

  1. Santi

    Santi Guest

    Hi,
    Is there anyway to find if a dll or exe has been compiled from C++ or Delphi
    or whatever language?
    Santi, Jul 12, 2004
    #1
    1. Advertising

  2. Santi

    JKop Guest

    Santi posted:

    > Hi,
    > Is there anyway to find if a dll or exe has been compiled

    from C++ or
    > Delphi or whatever language?
    >
    >
    >


    Not unless the author wants that to be know.

    A DLL has a Windows file header, and that's followed by
    machine code.

    Try http://www.dependancywalker.com/


    -JKop
    JKop, Jul 12, 2004
    #2
    1. Advertising

  3. Santi wrote:
    > Is there anyway to find if a dll or exe has been compiled from C++ or Delphi
    > or whatever language?


    Generally speaking, no, it's not possible.

    V
    Victor Bazarov, Jul 12, 2004
    #3
  4. [OT] Is it possible to find in what language a dll has been programmed?

    In message <JfvIc.4399$>, JKop <>
    writes
    >Santi posted:
    >
    >> Hi,
    >> Is there anyway to find if a dll or exe has been compiled

    >from C++ or
    >> Delphi or whatever language?

    >
    >Not unless the author wants that to be know.
    >
    >A DLL has a Windows file header, and that's followed by
    >machine code.
    >
    >Try http://www.dependancywalker.com/


    Then try http://www.dependencywalker.com/ ;-(

    --
    Richard Herring
    Richard Herring, Jul 12, 2004
    #4
  5. Santi

    rossum Guest

    On Mon, 12 Jul 2004 10:36:41 +0200, "Santi" <> wrote:

    >Hi,
    >Is there anyway to find if a dll or exe has been compiled from C++ or Delphi
    >or whatever language?
    >

    1 Sometimes "Properties" will give you this sort of information.

    2 Sometimes a utility to extract printable ASCII strings will show up
    some relevant information.

    3 Neither of these is guaranteed to work.

    rossum

    --

    The Ultimate Truth is that there is no Ultimate Truth
    rossum, Jul 12, 2004
    #5
  6. "Santi" <> wrote in message news:<cctidk$35b$-data.net>...
    > Hi,
    > Is there anyway to find if a dll or exe has been compiled from C++ or Delphi
    > or whatever language?


    As everyone else has said, no. However, depending on how desperate
    you are, there are some ways of gaining a statistical indication:

    In the absence of function type qualifiers (_declspec, etc) the
    calling convention is determined by the language. In C, caller pushes
    arguments, caller, pops. In Pascal, the caller pushes, but the callee
    pops. Naturally, you would have to sample many functions in the EXE
    to gain some certainty about the language. There is also the matter
    of virtual functions. C++ has a distinct sequences of instructions
    for accessing a pointer in the virtual function table. This sequence
    might be different from other OO languagues.

    If you pick 4 or 5 things to check for, then you could derive
    stochastic answer to your question. Do not try to do this
    programmatically, as you will discover that there no such thing as a
    quick-and-dirty disassembler.

    -Chaud Lapin-
    Le Chaud Lapin, Jul 13, 2004
    #6
  7. Santi

    Socket Guest

    I agree with Chaud Lapin
    But beside compiler specific of code generation,
    sometime there is possibility to differ 2 compilers based at
    register, register code of operations.

    All register, register 80x86 commands (such as MOV al,bl CMP edx,ebx)
    may be presented by 2 set of codes, for example:
    31C0 XOR EAX,EAX
    33C0 XOR EAX,EAX
    in the first case bit direction is 0 in the second 1.
    Some compiler prefers to clear this bit in reg, reg OP, other ones likes to
    set it to 1.

    Regards, Alex
    http://smike.ru
    http://ircdb.org
    Socket, Jul 14, 2004
    #7
  8. Santi

    Howard Guest

    [OT] name

    "Le Chaud Lapin" <> wrote in message
    > -Chaud Lapin-


    Did you know your name is "(The) heat rabbit"? :)

    If you were trying for "(The) hot rabbit", that would be "(Le) lapin chaud".

    Backwards the French everything write.

    :)

    -Howard
    Howard, Jul 14, 2004
    #8
  9. Santi

    rossum Guest

    Re: [OT] name

    On Wed, 14 Jul 2004 20:43:22 GMT, "Howard" <>
    wrote:

    >
    >"Le Chaud Lapin" <> wrote in message
    >> -Chaud Lapin-

    >
    >Did you know your name is "(The) heat rabbit"? :)
    >
    >If you were trying for "(The) hot rabbit", that would be "(Le) lapin chaud".
    >
    >Backwards the French everything write.


    Which is why they call NATO OTAN.

    rossum

    >
    >:)
    >
    >-Howard
    >
    >


    --

    The Ultimate Truth is that there is no Ultimate Truth
    rossum, Jul 14, 2004
    #9
  10. Re: [OT] name

    Howard wrote:
    > "Le Chaud Lapin" <> wrote in message
    >
    >>-Chaud Lapin-

    >
    >
    > Did you know your name is "(The) heat rabbit"? :)
    >
    > If you were trying for "(The) hot rabbit", that would be "(Le) lapin chaud".
    >
    > Backwards the French everything write.


    Not everything, there are exceptions like grand, petit, jeune, joli,
    beau, mauvais, nouveau, autre, vieux...etc which should be put in front
    of the noun.

    If you think C++ is a difficult language try learning french!

    --
    Peter van Merkerk
    peter.van.merkerk(at)dse.nl
    Peter van Merkerk, Jul 14, 2004
    #10
  11. Santi

    Duane Hebert Guest

    Re: [OT] name

    "Peter van Merkerk" <> wrote in message news:...
    > Howard wrote:
    > > "Le Chaud Lapin" <> wrote in message
    > >
    > >>-Chaud Lapin-

    > >
    > >
    > > Did you know your name is "(The) heat rabbit"? :)


    In Quebec it might be drunk rabbit or horny rabbit...
    Duane Hebert, Jul 15, 2004
    #11
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2FuZHk=?=

    How are MSDN Newsgroups programmed?

    =?Utf-8?B?U2FuZHk=?=, Feb 13, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    318
    Patrick Olurotimi Ige
    Feb 14, 2005
  2. Pandora Xero

    Free Games Programmed in C++?

    Pandora Xero, Aug 6, 2003, in forum: C++
    Replies:
    4
    Views:
    1,363
    David T. Croft
    Aug 11, 2003
  3. ogalve
    Replies:
    3
    Views:
    331
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Feb 7, 2007
  4. phancey
    Replies:
    3
    Views:
    2,567
  5. utauta
    Replies:
    7
    Views:
    800
    rickman
    Aug 4, 2008
Loading...

Share This Page