I have been reading up COM, there is a mention of binary standard and how that makes language independence possible.. Whats binary standard actually? In my mind, binary would mean machine level code, and if it means machine language how can that be independent at all?
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Should I use static function in c# where many call
At its lowest level, COM is really only a binary-level standard that describes how two pieces of software can communicate. It's binary because it's 100% language independant, it does not rely on source code, but only on a specific layout of structures in memory.
In my opinion, the best article to start with is The COM Programmer's Cookbook. This famous binary standard is explained at the beginning of the document that I quote here:
And the schema that comes with it represents the binary standard layout in memory: