<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FLEXT_ADDMETHOD and FLEXT_CADDMETHOD]]></title><description><![CDATA[<p>I'm new to Flext, and haven't coded in C++ in a long time. Made a simple object that reads a symbol; I get the following error:</p>
<p>error: reference to non-static member function must be called<br />
FLEXT_ADDMETHOD_S(0,&quot;read&quot;,m_read);</p>
<p>Also can someone clarify the difference between the two ways to register methods (ADDMETHOD and CADDMETHOD) ?<br />
Any help will be appreciated.</p>
<pre><code>#include &lt;flext.h&gt;

#if !defined(FLEXT_VERSION) || (FLEXT_VERSION &lt; 400)
#error You need at least flext version 0.4.0
#endif

class hello:

    public flext_base
{

    FLEXT_HEADER(hello,flext_base)
 
public:

    hello();
    
protected:

    void m_read(t_symbol *argument);
    
private:

    FLEXT_CALLBACK_S(m_read)
};

FLEXT_NEW(&quot;hello&quot;,hello)


hello::hello() {

    
    AddInAnything();
    
    FLEXT_ADDMETHOD_S(0,&quot;read&quot;,m_read);

}

void hello::m_read(t_symbol *argument) {
    post(&quot;reading argument: %s)&quot;,GetString(argument));      
        
}

</code></pre>
]]></description><link>http://forum.pdpatchrepo.info/topic/9777/flext_addmethod-and-flext_caddmethod</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 01:11:14 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/9777.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Jan 2016 07:37:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FLEXT_ADDMETHOD and FLEXT_CADDMETHOD on Thu, 14 Jan 2016 05:01:01 GMT]]></title><description><![CDATA[<p>I'm new to Flext, and haven't coded in C++ in a long time. Made a simple object that reads a symbol; I get the following error:</p>
<p>error: reference to non-static member function must be called<br />
FLEXT_ADDMETHOD_S(0,&quot;read&quot;,m_read);</p>
<p>Also can someone clarify the difference between the two ways to register methods (ADDMETHOD and CADDMETHOD) ?<br />
Any help will be appreciated.</p>
<pre><code>#include &lt;flext.h&gt;

#if !defined(FLEXT_VERSION) || (FLEXT_VERSION &lt; 400)
#error You need at least flext version 0.4.0
#endif

class hello:

    public flext_base
{

    FLEXT_HEADER(hello,flext_base)
 
public:

    hello();
    
protected:

    void m_read(t_symbol *argument);
    
private:

    FLEXT_CALLBACK_S(m_read)
};

FLEXT_NEW(&quot;hello&quot;,hello)


hello::hello() {

    
    AddInAnything();
    
    FLEXT_ADDMETHOD_S(0,&quot;read&quot;,m_read);

}

void hello::m_read(t_symbol *argument) {
    post(&quot;reading argument: %s)&quot;,GetString(argument));      
        
}

</code></pre>
]]></description><link>http://forum.pdpatchrepo.info/topic/9777/flext_addmethod-and-flext_caddmethod</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9777/flext_addmethod-and-flext_caddmethod</guid><dc:creator><![CDATA[flextUser]]></dc:creator><pubDate>Thu, 14 Jan 2016 05:01:01 GMT</pubDate></item><item><title><![CDATA[Reply to FLEXT_ADDMETHOD and FLEXT_CADDMETHOD on Thu, 14 Jan 2016 05:34:02 GMT]]></title><description><![CDATA[<p>Well, I guess I found the answer by doing the homework and looking at fldefs_methadd.h</p>
<p>//! Add a a handler for a method with implicit arguments<br />
#define FLEXT_CADDMETHOD_(CL,IX,M_TAG,M_FUN) \</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/9777/flext_addmethod-and-flext_caddmethod/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/9777/flext_addmethod-and-flext_caddmethod/2</guid><dc:creator><![CDATA[flextUser]]></dc:creator><pubDate>Thu, 14 Jan 2016 05:34:02 GMT</pubDate></item></channel></rss>