It's been always a question for me how some (web, desktop) applications are made in couple of programming languages. For example, I hear (or read) that some apps such as firefox, photoshop or even amazon.com (logical codes of course) are written in C++ or that blah-blah app core is C++. To get to the point, I wonder how a programmer(s) can integrate some programming languages or modules written in those to build an application in one piece? What exactly is the idea?
Thanks in advance,