<!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>> </FONT>
<BR><FONT SIZE=2>> Excellent review!</FONT>
</P>
<P><FONT SIZE=2>thanks.</FONT>
<BR><FONT SIZE=2> </FONT>
</P>
<P><FONT SIZE=2>> Last week I wrote my first perl interface to a C library.</FONT>
<BR><FONT SIZE=2>> It was quite a bit of fun, but I discovered that</FONT>
<BR><FONT SIZE=2>> documentation is severly lacking. I had the most trouble</FONT>
<BR><FONT SIZE=2>> with the "typemap". It seems that all documents just </FONT>
<BR><FONT SIZE=2>> seem to gloss over this very important part of the process. </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> A collection of good examples that really helped me out can </FONT>
<BR><FONT SIZE=2>> be found at:</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> <A HREF="http://search.cpan.org/author/DMR/" TARGET="_blank">http://search.cpan.org/author/DMR/</A></FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Dean Roehrich has two little "CookBooks" 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 Direct: 913.403.5261</FONT>
<BR><FONT SIZE=2>5828 Reeds Road Main: 913.384.1008</FONT>
<BR><FONT SIZE=2>Mission, KS 66202 Fax: 913.384.2180</FONT>
<BR><FONT SIZE=2>www.scriptpro.com garrett at scriptpro dot com</FONT>
</P>
</BODY>
</HTML>