<?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[fehler bei CreateThread() !!!]]></title><description><![CDATA[<p>guten tag!</p>
<p>ich habe ein problem, ich habe eine WinMain-Anwendung und möchte<br />
eine funktion als thread starten. es kommt folgender fehler:</p>
<pre><code>E:\c#\A Projekte\BTro\BTro_Client_2\main.cpp(716) : error C2440: 'type cast' : cannot convert from '' to 'unsigned long (__stdcall *)(void *)'
        None of the functions with this name in scope match the target type
</code></pre>
<p>mein code:</p>
<pre><code>CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)send_file_to_server,NULL,0,0);
</code></pre>
<p>meine funktion ist eigentlich</p>
<pre><code>void send_file_to_server()
{
...
}
</code></pre>
<p>bei</p>
<pre><code>unsigned long __stdcall send_file_to_server()
{
...
}
</code></pre>
<p>kommt aber auch der fehler!</p>
<p>danke euch schonmal!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/152726/fehler-bei-createthread</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 16:20:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/152726.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Jul 2006 10:11:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to fehler bei CreateThread() !!! on Sun, 09 Jul 2006 10:11:19 GMT]]></title><description><![CDATA[<p>guten tag!</p>
<p>ich habe ein problem, ich habe eine WinMain-Anwendung und möchte<br />
eine funktion als thread starten. es kommt folgender fehler:</p>
<pre><code>E:\c#\A Projekte\BTro\BTro_Client_2\main.cpp(716) : error C2440: 'type cast' : cannot convert from '' to 'unsigned long (__stdcall *)(void *)'
        None of the functions with this name in scope match the target type
</code></pre>
<p>mein code:</p>
<pre><code>CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)send_file_to_server,NULL,0,0);
</code></pre>
<p>meine funktion ist eigentlich</p>
<pre><code>void send_file_to_server()
{
...
}
</code></pre>
<p>bei</p>
<pre><code>unsigned long __stdcall send_file_to_server()
{
...
}
</code></pre>
<p>kommt aber auch der fehler!</p>
<p>danke euch schonmal!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1094299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1094299</guid><dc:creator><![CDATA[Harry H.]]></dc:creator><pubDate>Sun, 09 Jul 2006 10:11:19 GMT</pubDate></item><item><title><![CDATA[Reply to fehler bei CreateThread() !!! on Sun, 09 Jul 2006 10:12:45 GMT]]></title><description><![CDATA[<p>DWORD WINAPI ThreadProc(<strong>LPVOID lpParameter</strong>);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1094300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1094300</guid><dc:creator><![CDATA[dumm?]]></dc:creator><pubDate>Sun, 09 Jul 2006 10:12:45 GMT</pubDate></item></channel></rss>