This is because you are reading wrong articles.
They are all based on wrong, or counter-productive formulation of the artificial problems. First one tries to "find" one or another principle in quite a pointless piece of code doing who-knows-what, other "focus" on "vs" or "difference". Those "vs" and "difference" are undefinable and carry no real meaning, and questions in such terms are incorrect.
Instead, you may need just to understand each of the two principles, their applications and value. And you probably need to start with some reasonable explanation of these principles. In particular:
http://en.wikipedia.org/wiki/Open_Closed_Principle[
^],
http://en.wikipedia.org/wiki/Dependency_inversion_principle[
^].
See also:
http://en.wikipedia.org/wiki/SOLID_%28object-oriented_design%29[
^].
Explaining anything in a Quick Answer written specially for you would not make much sense here. Why would it be better than available literature?
—SA