title: -> must point to class/struct/union/generic type error
body: <pre><code>typedef struct{
      IMAGE *fuente;
      IMAGE *destino;
      int saltos;
  } ARGTHREAD;
  
  ARGTHREAD values;
  
  DWORD WINAPI ProcessThread(LPVOID arg){
  
      int i,j,imageRows,imageCols,C,R;
      PIXEL *pfte,*pdst;
      PIXEL *v0,*v1,*v2,*v3,*v4,*v5,*v6,*v7;
  
      //memcpy(arg-&gt;destino, arg-&gt;fuente,sizeof(IMAGE)-sizeof(PIXEL *));
  
      imageRows = arg-&gt;fuente-&gt;infoheader.rows;//error here -&gt;
      imageCols = arg-&gt;fuente-&gt;infoheader.cols;//error here -&gt;
  
      //arg-&gt;destino-&gt;pixel=(PIXEL *)malloc(sizeof(PIXEL)*imageRows*imageCols);
  
      i=arg-&gt;saltos;//error here -&gt;
      R=imageRows-1;
      C=imageCols-1;
      while(i&lt;R){
                  j=1;        
              while(j&lt;C){
                  pfte=arg-&gt;fuente-&gt;pixel+imageCols*i+j;//error here -&gt;
                  v0=pfte-imageCols-1;
                  v1=pfte-imageCols;
                  v2=pfte-imageCols+1;
                  v3=pfte-1;
                  v4=pfte+1;
                  v5=pfte+imageCols-1;
                  v6=pfte+imageCols;
                  v7=pfte+imageCols+1;
  
                  pdst=arg-&gt;destino-&gt;pixel+imageCols*i+j;//error here -&gt;
  
              if(abs(blackandwhite(*pfte)-blackandwhite(*v0))&gt;DIF ||
                      abs(blackandwhite(*pfte)-blackandwhite(*v1))&gt;DIF ||
                      abs(blackandwhite(*pfte)-blackandwhite(*v2))&gt;DIF ||
                      abs(blackandwhite(*pfte)-blackandwhite(*v3))&gt;DIF ||
                      abs(blackandwhite(*pfte)-blackandwhite(*v4))&gt;DIF ||
                      abs(blackandwhite(*pfte)-blackandwhite(*v5))&gt;DIF ||
                      abs(blackandwhite(*pfte)-blackandwhite(*v6))&gt;DIF ||
                      abs(blackandwhite(*pfte)-blackandwhite(*v7))&gt;DIF){
  
                      pdst-&gt;red=0;
                      pdst-&gt;green=0;
                      pdst-&gt;blue=0;
                  }
  
                  else{
                      pdst-&gt;red=255;
                      pdst-&gt;green=255;
                      pdst-&gt;blue=255;
                  }
                  j++;        
              }
          i = i+numProc;
      }
  }
  </code></pre>
  
  <p><strong>This is how i have created my tread:</strong></p>
  
  <blockquote>
    <p>myThread = CreateThread(NULL, 0,
    (LPTHREAD_START_ROUTINE)ProcessThread, &amp;values, 0, NULL );</p>
  </blockquote>
  
  <p><strong>Im getting a lot of these errors and i cant figure it out why?</strong></p>
  
  <p>Error 8 error C2228: left of '.cols' must have class/struct/union   </p>