Enum every Key From new Dic

 

Attach is CDictonary Code..

i want enum every Key from anew Dic that I Dim,


void  dicTest()
{
   CDictionary* dics = new CDictionary();
   dics.AddObject("a", (CObject*)new CWord("aa"));
   dics.AddObject("b", (CObject*)new CWord("bb"));
   dics.AddObject("c", (CObject*)new CWord("cc"));

   for(int j=0;j<=dics.Total()-1;j++)
    {
       string key="";
     /// i want enum every Key and Print ,so how to get it.
      Print(key);
      dics.Clear();
    }
}

Files:
Dictionary.mqh  38 kb