<?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[VC++Express: Nicht aufgelöste externe Symbole???]]></title><description><![CDATA[<p>Hallole.<br />
Ich programmieren schon länger mit vc++,aber bisher nur DLLs.<br />
Möchte jetzt ein Windows Programm schreiben,aber bekomme schon am Anfang probleme.</p>
<p>Mein Code sieht bisher so aus:</p>
<pre><code>#include &lt;windows.h&gt;

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;

char szAppName[]=&quot;initialisize&quot;;

int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
HWND hwnd;
WNDCLASS wndclass;
MSG msg;

 wndclass.style = CS_HREDRAW | CS_VREDRAW ;
 wndclass.lpfnWndProc = WndProc;//Fkt. für Messages
 wndclass.cbClsExtra = 0;
 wndclass.cbWndExtra = 0;
 wndclass.hInstance = hInst;
 wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION	);
 wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
 wndclass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
 wndclass.lpszMenuName	= NULL;
 wndclass.lpszClassName = szAppName;//szAppName;

    return 1; 
}
</code></pre>
<p>Das include Verzeichnis zeigt garantiert dahin wo die Windows.h ist.</p>
<p>Trotzdem bekomme ich folgende Fehlermeldungen:</p>
<blockquote>
<p>Fehler 6 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__GetStockObject@4&quot; in Funktion &quot;_WinMain@16&quot;. main.obj<br />
Fehler 7 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__LoadCursorA@8&quot; in Funktion &quot;_WinMain@16&quot;. main.obj<br />
Fehler 8 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__LoadIconA@8&quot; in Funktion &quot;_WinMain@16&quot;. main.obj</p>
</blockquote>
<p>Das verstehe ich nich tund ich weiß auch nicht was ich da tun soll?<br />
Kann mir jemand helfen?</p>
<p>Mondmann</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/176641/vc-express-nicht-aufgelöste-externe-symbole</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 17:27:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/176641.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Mar 2007 08:48:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to VC++Express: Nicht aufgelöste externe Symbole??? on Fri, 23 Mar 2007 08:48:24 GMT]]></title><description><![CDATA[<p>Hallole.<br />
Ich programmieren schon länger mit vc++,aber bisher nur DLLs.<br />
Möchte jetzt ein Windows Programm schreiben,aber bekomme schon am Anfang probleme.</p>
<p>Mein Code sieht bisher so aus:</p>
<pre><code>#include &lt;windows.h&gt;

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;

char szAppName[]=&quot;initialisize&quot;;

int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
{
HWND hwnd;
WNDCLASS wndclass;
MSG msg;

 wndclass.style = CS_HREDRAW | CS_VREDRAW ;
 wndclass.lpfnWndProc = WndProc;//Fkt. für Messages
 wndclass.cbClsExtra = 0;
 wndclass.cbWndExtra = 0;
 wndclass.hInstance = hInst;
 wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION	);
 wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
 wndclass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
 wndclass.lpszMenuName	= NULL;
 wndclass.lpszClassName = szAppName;//szAppName;

    return 1; 
}
</code></pre>
<p>Das include Verzeichnis zeigt garantiert dahin wo die Windows.h ist.</p>
<p>Trotzdem bekomme ich folgende Fehlermeldungen:</p>
<blockquote>
<p>Fehler 6 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__GetStockObject@4&quot; in Funktion &quot;_WinMain@16&quot;. main.obj<br />
Fehler 7 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__LoadCursorA@8&quot; in Funktion &quot;_WinMain@16&quot;. main.obj<br />
Fehler 8 error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__LoadIconA@8&quot; in Funktion &quot;_WinMain@16&quot;. main.obj</p>
</blockquote>
<p>Das verstehe ich nich tund ich weiß auch nicht was ich da tun soll?<br />
Kann mir jemand helfen?</p>
<p>Mondmann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1250966</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1250966</guid><dc:creator><![CDATA[Mondmann]]></dc:creator><pubDate>Fri, 23 Mar 2007 08:48:24 GMT</pubDate></item><item><title><![CDATA[Reply to VC++Express: Nicht aufgelöste externe Symbole??? on Fri, 23 Mar 2007 09:47:03 GMT]]></title><description><![CDATA[<p>Falsches Forum...<br />
du bist hier in C++/CLI, nicht winapi!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1251003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251003</guid><dc:creator><![CDATA[Dappeljuh]]></dc:creator><pubDate>Fri, 23 Mar 2007 09:47:03 GMT</pubDate></item><item><title><![CDATA[Reply to VC++Express: Nicht aufgelöste externe Symbole??? on Fri, 23 Mar 2007 14:56:46 GMT]]></title><description><![CDATA[<p>Füge mal ein</p>
<pre><code class="language-cpp">#pragma comment(lib, &quot;user32.lib&quot;)
#pragma comment(lib, &quot;Gdi32.lib&quot;)
</code></pre>
<p>in Deinen Code ein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1251204</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251204</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 23 Mar 2007 14:56:46 GMT</pubDate></item><item><title><![CDATA[Reply to VC++Express: Nicht aufgelöste externe Symbole??? on Fri, 23 Mar 2007 14:56:53 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-18363.html" rel="nofollow">Jochen Kalmbach</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-58.html" rel="nofollow">C++/CLI mit .NET</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1251205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1251205</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Fri, 23 Mar 2007 14:56:53 GMT</pubDate></item><item><title><![CDATA[Reply to VC++Express: Nicht aufgelöste externe Symbole??? on Mon, 26 Mar 2007 09:44:05 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Füge mal ein</p>
<pre><code class="language-cpp">#pragma comment(lib, &quot;user32.lib&quot;)
#pragma comment(lib, &quot;Gdi32.lib&quot;)
</code></pre>
<p>in Deinen Code ein</p>
</blockquote>
<p>Vielen Dank, das hat geholfen.<br />
Nur wie kann man herausfinden welche Funktionen in welchen libraries ist?<br />
Im Falle sowas kommt nochmal vor?</p>
<p>Mondmann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1252760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1252760</guid><dc:creator><![CDATA[Mondmann]]></dc:creator><pubDate>Mon, 26 Mar 2007 09:44:05 GMT</pubDate></item><item><title><![CDATA[Reply to VC++Express: Nicht aufgelöste externe Symbole??? on Mon, 26 Mar 2007 09:55:00 GMT]]></title><description><![CDATA[<p>Mondmann schrieb:</p>
<blockquote>
<p>Nur wie kann man herausfinden welche Funktionen in welchen libraries ist?</p>
</blockquote>
<p>Das steht in der MSDN Library, bei der Dokumentation der Funktion.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1252769</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1252769</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 26 Mar 2007 09:55:00 GMT</pubDate></item><item><title><![CDATA[Reply to VC++Express: Nicht aufgelöste externe Symbole??? on Mon, 26 Mar 2007 09:56:21 GMT]]></title><description><![CDATA[<p>Okidoki alles klar.<br />
Vielen Dank.<br />
Grüße Mondmann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1252770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1252770</guid><dc:creator><![CDATA[Mondmann]]></dc:creator><pubDate>Mon, 26 Mar 2007 09:56:21 GMT</pubDate></item></channel></rss>