"Santi" <n@s.e> wrote in message news:<cc**********@nsnmrro2-gest.nuria.telefonica-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-