views:

13

answers:

1

Two questions really, I'm fairly confident about the first but not sure on the second.

Firstly: If I write a subclass of a class from a library released under the CPL, do I also need to release this subclass under the CPL?

Secondly: If I copypaste some code from a CPL library, then make reasonably substantial modifications to the code, and then include this code in a commercial project, does the modified code need to be released under the CPL?

A: 

This depends on where you are publishing from. From Denmark you only need to make some quite substantial changes to the code to ignore the copyright. But you can't release anything from a more open license to a less open license.

Ekampp
What I'm actually trying to do is add a new control to a C# GUI library. Since a lot of the methods I need to override to do this (and a lot of the properties required) are declared internal, I might need to just release my modified version. Thus, a new question: If I did this, would I be able to distribute my new code with a link to the source of the rest of the library, or would I have to make available the whole modified library (which is quite substantial)?
Hazman