<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [Kc] Book Review: Extending and Embedding Perl</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>D. Hageman wrote:</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Excellent review!</FONT>
</P>

<P><FONT SIZE=2>thanks.</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
</P>

<P><FONT SIZE=2>&gt; Last week I wrote my first perl interface to a C library.</FONT>
<BR><FONT SIZE=2>&gt; It was quite a bit of fun, but I discovered that</FONT>
<BR><FONT SIZE=2>&gt; documentation is severly lacking.&nbsp; I had the most trouble</FONT>
<BR><FONT SIZE=2>&gt; with the &quot;typemap&quot;.&nbsp; It seems that all documents just </FONT>
<BR><FONT SIZE=2>&gt; seem to gloss over this very important part of the process.&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; A collection of good examples that really helped me out can </FONT>
<BR><FONT SIZE=2>&gt; be found at:</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://search.cpan.org/author/DMR/" TARGET="_blank">http://search.cpan.org/author/DMR/</A></FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Dean Roehrich has two little &quot;CookBooks&quot; on the subject matter.</FONT>
</P>

<P><FONT SIZE=2>nice! very nice...</FONT>
</P>

<P><FONT SIZE=2>I never figured out how to create a typemap for a struct so that I could use the struct as an argument in a call to a function in a C library. Note... a struct not a pointer to a struct. There are a couple functions in the Win32API which actually take things like a POINT or a RECT as an argument and not just a pointer to it. I've worked around this by passing each member of the struct as separate arguments. But it always bugged me that I couldn't find a way to actually pass the struct itself as an argument.</FONT></P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Garrett Goebel</FONT>
<BR><FONT SIZE=2>IS Development Specialist</FONT>
</P>

<P><FONT SIZE=2>ScriptPro&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Direct: 913.403.5261</FONT>
<BR><FONT SIZE=2>5828 Reeds Road&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Main:&nbsp;&nbsp; 913.384.1008</FONT>
<BR><FONT SIZE=2>Mission, KS 66202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax:&nbsp;&nbsp;&nbsp; 913.384.2180</FONT>
<BR><FONT SIZE=2>www.scriptpro.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; garrett at scriptpro dot com</FONT>
</P>

</BODY>
</HTML>