home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _1759fc4469a98629d932a0584b3282b6 < prev    next >
Text File  |  2004-06-01  |  4KB  |  97 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3.  
  4. <head>
  5. <title>ActivePerl faq10 - Embedding and Extending</title>
  6. <link rel="STYLESHEET" href="../../Active.css" type="text/css" media="screen">
  7. </head>
  8.  
  9. <body>
  10.  
  11. <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EAE2BB">
  12. <tr> 
  13. <td width="57"><a target=_blank href="http://www.ActiveState.com/ActivePerl/">
  14. <img src="../../images/activeperl_logo.gif" width="57" height="48" border="0" alt="ActivePerl"></a></td>
  15. <td><div align="center" class="heading">ActivePerl User Guide</div></td>
  16. <td width="112"><a target=_blank  href="http://www.ActiveState.com">
  17. <img src="../../images/AS_logo.gif" width="112" height="48" border="0"  alt="ActiveState" /></a></td>
  18. </tr>
  19. <tr>
  20. <td class="lineColour" colspan="3"></td>
  21. </tr>
  22. </table>
  23.  
  24. <h1>Embedding and Extending</h1>
  25.  
  26. <ul>
  27.   <li><a class="doc" href="#NAME">NAME</a></li>
  28.   <li><a class="doc" href="#DESCRIPTION">DESCRIPTION</a>
  29.     <ul>
  30.       <li><a class="doc" href="#How_do_I_write_an_extension_for_">How do I write an
  31.         extension for ActivePerl?</a></li>
  32.       <li><a class="doc" href="#How_do_I_embed_the_Perl_interpre">How do I embed the Perl
  33.         interpreter into my C/C++ program?</a></li>
  34.     </ul>
  35.   </li>
  36.   <li><a class="doc" href="#AUTHOR_AND_COPYRIGHT">AUTHOR AND COPYRIGHT</a></li>
  37. </ul>
  38.  
  39. <h2><a name="NAME">NAME</a></h2>
  40. <p>ActivePerl-faq10 - Embedding and Extending</p>
  41.  
  42. <h2><a name="DESCRIPTION">DESCRIPTION</a></h2>
  43. <p>Techniques for Embedding and Extending ActivePerl</p>
  44.  
  45. <h2><a name="How_do_I_write_an_extension_for_">How do I write an extension for
  46. ActivePerl?</a></h2>
  47.  
  48. <p>Writing extensions in C or C++ for ActivePerl is identical to writing them for standard Perl. Consult the
  49. perlxstut document for complete information and pointers to other sources of information.</p>
  50.  
  51. <p>As a result of the oneperl effort, you no longer need to build ActivePerl from the source distribution to
  52. write or compile extensions. The Perl installation will detect your C compiler (currently, just Visual C++),
  53. and configure Perl to use it for compiling extensions.</p>
  54.  
  55. <p>Note that writing extensions in C or C++ is not easy. You need to have experience writing C 
  56. programs for Windows platforms before you should even think about writing an extension.</p>
  57.  
  58. <h2><a name="How_do_I_embed_the_Perl_interpre">How do I embed the Perl
  59. interpreter into my C/C++ program?</a></h2>
  60.  
  61. <p>Writing applications that contain Perl interpreters using ActivePerl is
  62. identical to writing them for standard Perl. Consult the perlembed document for
  63. complete information and pointers to other sources of information.</p>
  64.  
  65. <p>Note that the subject of embedding Perl interpreters inside applications is
  66. not a trivial one. You need to have experience writing C programs for Windows platforms before
  67. you should even think about writing an embedding Perl interpreters in your application.</p>
  68.  
  69. <p>NOTE: ActivePerl 5xx series builds had a different mechanism for embedding
  70. that was restricted to C++. This is no longer supported.
  71. The standard way to embed interpreters now supports all the functionality that
  72. used to be available only with C++, and then some. Use
  73. the mechanisms described in the perlembed documentation.</p>
  74.  
  75. <h2><a name="AUTHOR_AND_COPYRIGHT">AUTHOR AND COPYRIGHT</a></h2>
  76.  
  77. <p>This FAQ was originally assembled and maintained by
  78. Evangelo Prodromou. It has been revised and updated by Brian Jepson of O'Reilly
  79. & Associates, David Grove, David Dmytryshyn, and David Sparks of
  80. ActiveState.</p>
  81.  
  82. <p>This FAQ is in the public domain. If you use it,
  83. however, please ensure that you give credit to the original authors. 
  84. </p>
  85.  
  86. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  87.   <tr>
  88.     <td class="block" valign="MIDDLE" width="100%" bgcolor="#cccccc"><strong>
  89.       <p class="block"> ActivePerl FAQ - Embedding and Extending</p>
  90.       </strong></td>
  91.   </tr>
  92. </table>
  93.  
  94. </body>
  95.  
  96. </html>
  97.