Επίσης Κανέλλη έχει στείλει μόνο ένας?Παιδιά δώστε οδηγίες και ένα status report να ξέρουμε τι παίζει, τα χριστούγεννα έρχονται...
In other news, πάρτε ένα ωραίο παράδειγμα που έχει το msdn για τη χρησιμότητα του COM (σώζει ζωές)
You need to develop an application for CompanyX Gas Tanks. The application will display the level of gasoline in CompanyX's new prestigious 1,000-gallon fuel tank. First, you create [..snip..] Internally, GasTankLevelGetterDLL supports the device capability to read data continuously from the new 1,000-gallon CompanyX gas tank. Your application works like a charm and ships "bugless."
A couple weeks later, Ricky Rich calls you up and says your ActiveX gauge control is the prettiest thing he has ever seen in his life. Ricky says he wants to use it to monitor the level of his 5,000-gallon fish tank. He says the gauge needs to show the same three levels as your gas control. [...snip...] He uses your application 24 hours a day to be sure his fish are safe and secure. You ship a new LevelGetterDLL to CompanyX as well. Other companies contact you about using your ActiveX gauge control. You respond by saying, "No problem. Export these three functions, name your DLL LevelGetterDLL, and you are ready to go." [...snip...] You go home that night feeling very smart.
The next day you open The Wall Street Journal to find that Ricky Rich has died in a helicopter accident. While en route to Rich Inc. headquarters, Ricky's helicopter ran out of gas. It seems that Ricky was an CompanyX client, and he ran two applications on his PC simultaneously. Application 1 was the fish tank monitor you developed for him using the LevelGetterDLL. Application 2 was CompanyX's fuel tank monitoring application that also used a version of LevelGetterDLL, the one shipped with Ricky's helicopter. Although Ricky ran both applications, Application 2, CompanyX's fuel tank monitoring application, used the fish tank's LevelGetterDLL and reported the levels in the fish tank instead of CompanyX's 1,000-gallon gas tank, because the version for the fish tank was copied to the computer last. Ricky never knew that his helicopter was about to run out of gas. The Rich estate sues CompanyX who, in turn, sues you. The other companies you advised decide to sue you as well. Had you used COM, Ricky Rich would be alive today, and you would not be behind bars.