If i download a piece of software that is in .exe format,how do I find out which programming language(java,VB,C++ etc) the file has been written in? Also,does anyone know if there is a online dictionary or software for different programming languages that tell you the exact code you need to make a function?
Usually you can decode/decompile it using something like PE Explorer and can tell by the language it is written in or it might identify the language in the header comments or etc. Each language has it's own characteristics that are unique to that language and if you know them you can tell. (E.g. php files start with <?php and end with ?>) I don't know of a dictionary that will tell the code to make a function for all the languages though...
It also depends on what framework has been used - if it is .Net for example it will have been compiled into MSIL irrespective of what language the thing was originally written in. It can easily be viewed as C#, VB, J#, IronPython etc however is exceptionally difficult to tell what it was "originally" written in.
Delphi, C++ Builder has classes names insite, called TForm, etc. it's in general. Also you can check for headers, or decompile it, and analise. there is difference, how procedures creates in different C compillers for example
It`s not definitly in Java language because java compiler doesn`t make .exe and you can use resource hacker . it can help you to gather information about the source of a ".exe" program but it can`t give you the exact source so by the informatin which "resource hacker" gives you, it can possible to guess in which programming language your program has been written.