title: prototype for `' does not match any in class `'
body: <p>I've got problem while compilling my program:</p>
  
  <blockquote>
    <p>prototype for int SROMemory::ReadString(unsigned int) does not match any in class SROMemory</p>
  </blockquote>
  
  <p>Whats going on?</p>
  
  <p>Here's a link to my Dev C++ project:  <a href="https://www.sendspace.com/file/uop8m8" rel="noreferrer">https://www.sendspace.com/file/uop8m8</a></p>
  
  <pre><code>#include "memory.h"
  
  SROMemory::SROMemory()
  {
            GetWindowThreadProcessId(FindWindow(NULL, (LPCSTR)TEXT("Tibia")), &amp;PROC_ID);
            PROC_HANDLE = OpenProcess(0x10, false, PROC_ID);
  }
  
  int SROMemory::ReadString(unsigned int Pointer)
  {
          char cValue[24] = "\0";
          ReadProcessMemory(PROC_HANDLE, (LPVOID)Pointer, &amp;cValue, sizeof(cValue), NULL);
          string Value = cValue;
          return Value;
  }
  </code></pre>
  
  <p>this is main.cpp:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "memory.h"
  
  using namespace std;
  
  int main(void)
  {
       bool exit = false;
  
       SROMemory Memory;
  
       string loginPass = Memory.ReadString(0x78F554);
  
       cout &lt;&lt; "LoginPass: " &lt;&lt; loginPass &lt;&lt; "\n";
  
       do
       {
  
       }while(!exit);
  }
  </code></pre>
  
  <p>and this is memory.cpp:</p>
  
  <pre><code>#include "memory.h"
  
  SROMemory::SROMemory()
  {
            GetWindowThreadProcessId(FindWindow(NULL, (LPCSTR)TEXT("Tibia")), &amp;PROC_ID);
            PROC_HANDLE = OpenProcess(0x10, false, PROC_ID);
  }
  
  int SROMemory::ReadString(unsigned int Pointer)
  {
          char cValue[24] = "\0";
          ReadProcessMemory(PROC_HANDLE, (LPVOID)Pointer, &amp;cValue, sizeof(cValue), NULL);
          string Value = cValue;
          return Value;
  }
  </code></pre>
  
  <p>Yup and i forgot about memory.h: </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;Windows.h&gt;
  
  using namespace std;
  
  class SROMemory
  {
      public:
          SROMemory();
          int ReadPointer(unsigned int Pointer);
          int ReadOffset(unsigned int Offset);
          string ReadString(unsigned int Pointer);
      private:
          DWORD PROC_ID;
          HANDLE PROC_HANDLE;
  };
  </code></pre>