Accessing an vector-Object from a different class
===

I created a vector with Pointers and I create new Objects from the class DigOut derived from Modul in one method called  
<pre><code>
<!-- language: lang-cpp -->

    BOOL Cbeckhoff_frontendDlg::OnInitDialog()
    {
    //...
    std::vector<Modul*> arrDigOut;
    arrDigOut.push_back(new DigOut(IDC_CHECK1, this,"GVL.DigOut1",pAddr));
    //...
    for(iNumDO = 0;iNumDO<1;iNumDO++) arrDigOut[iNumDO]->InitCheck(this);
    //...
    }

<!-- language: lang-none -->

How can I access the vector from a different method like:

    void Cbeckhoff_frontendDlg::OnBnClickedButton3()
    {
    for(iNumDO = 0;iNumDO<1;iNumDO++) arrDigOut[iNumDO]->SetID();
    }

<!-- language: lang-none -->

I thought about using public pointers or setters and getters,<br> but I don't get to create membervariables like this:

<!-- language: lang-cpp -->
    std::vector<Modul*> *	parrDigOut;

</code> </pre>

where it's complaining, that Modul is not declared.