Pointer to this function type is not supported yet.

 

Hello, this is from my "I wanna know OOP" file.
I'm stuck after message : Pointer to this function type is not supported yet....
And this is why I'm confused: it works sometimes.

working one: here all pointers are working and pointing.

bool MB()
  {
   int e=0;
   //--MB
   string   name  =  magic_NOS+whatis[0];
   int      sizeX =  MB_SIZE[0];
   int      sizeY =  MB_SIZE[1];
   color    Color =  COLOR_MAIN;


   //--object mb
   BACKGROUND  *mb =  new BACKGROUND();             //pointer mb


   mb.setnamesizecolor(name,sizeX,sizeY,Color);
   mb.setcoo(X,Y);
   //--plot
   if(!OBJ_PLOT(name,mb.getobjtyp())) { if(ObjectFind(0,name)<=0) { e=e+100; }}
   if(mb.getsettingssize()>1)
     {
      for(int i=0;i<mb.getsettingssize();i=i+1)
        {
         if(!OBJ_ICHANGE(name,mb.getiChangeID(i),mb.getichange(i))) { e++; }
        }
     }
   if(e>0)  { MESS(__FUNCTION__,0,GetLastError(),"errorNUM: "+string(e)); } else { MB_COO[0]=mb.getcooX(); MB_COO[1]=mb.getcooY(); }
   delete(mb);
   return(e==0);
  }

no working one: here are pointers working until firs "for" function, pointers inside functions is not working.

bool WB()
  {
   int e=0;
   //--WB
   string   wbname   =  magic_NOS+whatis[1];
   string   ico      =  WB_ICO;
   color    wbcolor  =  ICO_COLOR;
   int      wbsize   =  15;


   //--object wb
   ICONS    *wb   =  new ICONS();                      //pointer wb


   wb.setico(wbname,ico,wbcolor,wbsize,true);
   wb.seticocoo(MB_COO[0]+(MB_SIZE[0]/2),MB_COO[1]+(MB_SIZE[1]/2));
   //--plot
   if(!OBJ_PLOT(wbname,wb.getobjtyp())) { if(ObjectFind(0,wbname)<=0) { e=e+100; }}
   if(wb.getichangesize()>0)
     {
      for(int i=0;i<wb.getichangesize();i=i+1)
        {
        if(!OBJ_ICHANGE(wbname,wb.getichangeid[i],wb.getichange[i])) { e++; }       //here i'm getting error with pointer
        }
     }
   if(wb.getdchangesize()>0)
     {
      for(int i=0;i<wb.getdchangesize();i=i+1)
        {
        if(!OBJ_DCHANGE(wbname,wb.getdchangeid[i],wb.getdchange[i])) { e++; }       //here i'm getting error with pointer
        }
     }
   if(wb.getschangesize()>0)
     {
      for(int i=0;i<wb.getschangesize();i=i+1)
        {
        if(!OBJ_SCHANGE(wbname,wb.getschangeid[i],wb.getschange[i])) { e++; }       //here i'm getting error with pointer
        }
     }
   if(e>0)  { MESS(__FUNCTION__,0,GetLastError(),"errorNUM: "+string(e)); }
   delete(wb);
   return(e==0);
  }


I'm really stuck on this. Anyone can help?
 
You need provide more code. You have an included stuff which do some tricks and causes the problems.
 

Pointer to this function type is not supported yet

usually means you forgot to place parenthesis after the function name. In your case you replaced them by brackets.

 

Hi guys, sorry, wrong marks

wb.something[i]---->wb.something(i) = no error

I feel like shit. Thank you for help

 
Stanislav Korotky:
You need provide more code. You have an included stuff which do some tricks and causes the problems.
hello I found solution allready : it was in marks, thank you for comment.
 
Ex Ovo Omnia:

Pointer to this function type is not supported yet

usually means you forgot to place parenthesis after the function name. In your case you replaced them by brackets.

Yes, i found it, takes me whole day. Thank you for help, I will remember it for next time.