<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>4. Building C and C++ Extensions on Windows </title> <META NAME="description" CONTENT="4. Building C and C++ Extensions on Windows "> <META NAME="keywords" CONTENT="ext"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <meta http-equiv="Content-Type" content="text/html; charset="> <link rel="STYLESHEET" href="ext.css"> <link rel="first" href="ext.html"> <link rel="contents" href="contents.html" title="Contents"> <LINK REL="next" href="embedding.html"> <LINK REL="previous" href="building-on-unix.html"> <LINK REL="up" HREF="ext.html"> <LINK REL="next" href="win-cookbook.html"> </head> <body> <DIV CLASS="navigation"> <table align="center" width="100%" cellpadding="0" cellspacing="2"> <tr> <td><A href="distributing.html"><img src="../icons/previous.gif" border="0" height="32" alt="Previous Page" width="32"></A></td> <td><A HREF="ext.html"><img src="../icons/up.gif" border="0" height="32" alt="Up One Level" width="32"></A></td> <td><A href="win-cookbook.html"><img src="../icons/next.gif" border="0" height="32" alt="Next Page" width="32"></A></td> <td align="center" width="100%">Extending and Embedding the Python Interpreter</td> <td><A href="contents.html"><img src="../icons/contents.gif" border="0" height="32" alt="Contents" width="32"></A></td> <td><img src="../icons/blank.gif" border="0" height="32" alt="" width="32"></td> <td><img src="../icons/blank.gif" border="0" height="32" alt="" width="32"></td> </tr></table> <b class="navlabel">Previous:</b> <a class="sectref" href="distributing.html">3.4 Distributing your extension</A> <b class="navlabel">Up:</b> <a class="sectref" HREF="ext.html">Extending and Embedding the</A> <b class="navlabel">Next:</b> <a class="sectref" href="win-cookbook.html">4.1 A Cookbook Approach</A> <br><hr> </DIV> <!--End of Navigation Panel--> <H1><A NAME="SECTION006000000000000000000"> </A> <BR> 4. Building C and C++ Extensions on Windows </H1> <P> This chapter briefly explains how to create a Windows extension module for Python using Microsoft Visual C++, and follows with more detailed background information on how it works. The explanatory material is useful for both the Windows programmer learning to build Python extensions and the Unix programmer interested in producing software which can be successfully built on both Unix and Windows. <P> <p><hr> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a> <UL CLASS="ChildLinks"> <LI><A href="win-cookbook.html">4.1 A Cookbook Approach</a> <LI><A href="dynamic-linking.html">4.2 Differences Between Unix and Windows</a> <LI><A href="win-dlls.html">4.3 Using DLLs in Practice</a> </ul> <!--End of Table of Child-Links--> <DIV CLASS="navigation"> <p><hr> <table align="center" width="100%" cellpadding="0" cellspacing="2"> <tr> <td><A href="distributing.html"><img src="../icons/previous.gif" border="0" height="32" alt="Previous Page" width="32"></A></td> <td><A HREF="ext.html"><img src="../icons/up.gif" border="0" height="32" alt="Up One Level" width="32"></A></td> <td><A href="win-cookbook.html"><img src="../icons/next.gif" border="0" height="32" alt="Next Page" width="32"></A></td> <td align="center" width="100%">Extending and Embedding the Python Interpreter</td> <td><A href="contents.html"><img src="../icons/contents.gif" border="0" height="32" alt="Contents" width="32"></A></td> <td><img src="../icons/blank.gif" border="0" height="32" alt="" width="32"></td> <td><img src="../icons/blank.gif" border="0" height="32" alt="" width="32"></td> </tr></table> <b class="navlabel">Previous:</b> <a class="sectref" href="distributing.html">3.4 Distributing your extension</A> <b class="navlabel">Up:</b> <a class="sectref" HREF="ext.html">Extending and Embedding the</A> <b class="navlabel">Next:</b> <a class="sectref" href="win-cookbook.html">4.1 A Cookbook Approach</A> <hr> <span class="release-info">Release 2.2, documentation updated on December 21, 2001.</span> </DIV> <!--End of Navigation Panel--> <ADDRESS> See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. </ADDRESS> </BODY> </HTML>