<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BLOCKQUOTE type="cite"><BR>If you want to move an external from MaxMSP to MaxMSP/Pd, I developed another approach which is far less elegant than Thomas Grill's flext, but may be easier when you are starting with an existing MaxMSP code base. The basic idea is to use #ifdefs at the few places where MaxMSP and Pd code diverge, and a single header to wrap the different headers used for the two programs. The result is a single code file that will compile into either Pd or MaxMSP. You can see examples of this here: <BR></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>which by the way corresponds to flext version 0.1. (might still be found in the archives!)</DIV><DIV>This is the best approach for external objects that only make use of basic functionality of the underlying system.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>greetings,</DIV><DIV>Thomas</DIV></DIV><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--</DIV><DIV>Thomas Grill</DIV><DIV><A href="http://grrrr.org">http://grrrr.org</A></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>