Advertisement

Sample code

Started by November 18, 2005 03:21 PM
3 comments, last by nikemoto2511 19 years ago
Does anyone know the restrictions for using some sample code from msdn samples in a game that might be sold / subscribed to? I have a bit of copied code from samples in my program, not very much, but if it is illegal, etc, I'll have to go through my program and figure out what is taken, etc Anyone know what the rules are on using that sample code? Do I need to just put a comment in the source, saying it was used? Or actually display that it was used in the program? In a readme? Or must I remove all of it? Thanks for your time, Adam
Read the End User License Agreement. While I don't know for sure I would expect that you are NOT allowed to use it.
Dan Marchant - Business Development Consultant
www.obscure.co.uk
Advertisement
A general rule of thumb is that if you didn't create it you don't have a right to profit from it. If it's just sample code then it probably isn't anything big so you should be able to easily recreate something of your own that is similar.
Most code samples in MSDN are simply fragments showing you how to perform a certain function, or use a control, etc. As such, there isn't normally much of anything there that is proprietary - or that can be copied without modifying it to meet the specific needs of the code you are writing.
Randy ChaseKellogg Creek Software, Inc.
the msdn samples are made for the purpose to support coding.
if it suits, just include "made with MSDN SDK" "contains portions of the MSDN SDK" or "created using VISUAL STUDIO".

such code examples are "published" to a great number of people.
code pieces "company intern" are not "published" to a great number of people.

however, if "your program" greatly (more than 30%) consists of "third party code", it is called "derived work". you do not have to worry about a license for "small number" sales. if you get more rich than "them", just buy "them" or let "them" know at least.
now, there is not a limit

This topic is closed to new replies.

Advertisement