Calling a function that uses object members without giving the object
<pre><code>void CVisualStudioDemoDoc::updateLine(void)
{
int newln = GetLineNumber(p_buf);
reinterpret_cast&lt;CVisualStudioDemoView *&gt;(m_viewList.GetHead())-&gt;SetCurrentLineNumber(ln, newln);
ln = newln;
}
</code></pre>

<p>I want to call this function from another part of my code without having to give the object pointer and include headers.</p>

<p>I want to call it just like a normal void function.</p>

<pre><code>    if (changementLigne == true) {
        currentLine = prog;
        // TODO : appeler le callback de X2
        updateLine();
        Suspendre();
        changementLigne = false;
    }
</code></pre>

<p>I dont know if it's possible, since the CVisualStudioDemoDoc class is an MFC class, I didn't find a pointer I can use.</p>
