PETZOLD BOOK BLOG

Charles Petzold on writing books, reading books, and exercising the internal UTM


Recent Entries
< PreviousBrowse the ArchivesNext >
Subscribe to the RSS Feed

Using My Code in Your Projects

December 7, 2007
Roscoe, N.Y.

I write a lot of code that is published in books, magazine articles, and blog entries. Sometimes I receive emails requesting permission to use this code in commercial products or other programming projects.

All the code that I write and publish is free to use in your software projects without restriction. I write the code primarily for pedagogical purposes, but if you find a chunk that suits your needs, just take it. Use it straight up or modify it, I don't care. That's what it's there for!

The copyright notice that often appears on my source code is intended to assert my rights regarding publication of the source code. For example, you can't take some of my source code and put it in your own book or magazine article.

Even so, there are several circumstances in which republication of my source code is permitted under "fair use" concepts. For example, if you're writing an article and you need to discuss some stupid blunder that you found in one of my code samples, you're allowed to republish the code. I've seen some old code I've written used in historical discussions about the horrors of Win16 programming. That's OK as well.

Sometimes people want to translate code from my books to other programming languages. I like to know about such projects, but I have no problem with that. Currently, folks on the Visual Basic Team at Microsoft are converting samples in my book Applications = Code + Markup to VB. The results are here:

http://blogs.msdn.com/vbteam/pages/Petzold-WPF-VB-Samples.aspx

If you ever feel you need to say "Thank you" for the code, you can do so by buying my next book.


Comments:

Sort of a Grand Canyon 3D flight simulator. Check it out!!!

http://lunchgamer.iis7beta.com

— John Davis, Mon, 10 Dec 2007 07:20:11 -0500 (EST)

Charles:

Thank you for your great code examples and of course your permission to use them in my projects. I have learned a great deal already from what I have seen.

-Mike

Mike DiRenzo, Thu, 8 May 2008 18:33:26 -0400 (EDT)


Recent Entries
< PreviousBrowse the ArchivesNext >
Subscribe to the RSS Feed

(c) Copyright Charles Petzold
www.charlespetzold.com