<?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[Linker Error LNK2028, LNK2019]]></title><description><![CDATA[<p>Habe mir von msdn das Visual C++ 2005 Express und das Platform SDK gezogen (warte derzeit auf ein Paket von der Post mit der Vollversion). Will in die Programmierung mit der WinAPI einsteigen und dachte mir: &quot;machste doch erstmal Schritt 1 - Hello World ausm Petzold&quot;. Tja, nun steh ich da und weiß nicht weiter.<br />
Source-Code und Fehlermeldung:</p>
<pre><code>#include &lt;windows.h&gt;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
    PSTR szCmdLine, int iCmdShow)
{
	MessageBox(NULL, TEXT(&quot;Hello World!&quot;), TEXT(&quot;MSG&quot;), 0);
    return 0;
}
</code></pre>
<p>forms.obj : error LNK2028: unresolved token (0A000029) &quot;extern &quot;C&quot; int __stdcall MessageBoxW(struct HWND__ *,wchar_t const *,wchar_t const *,unsigned int)&quot; (?MessageBoxW@@$$J216YGHPAUHWND__@@PB_W1I@Z) referenced in function &quot;extern &quot;C&quot; int __cdecl MessageBox(struct HWND__ *,wchar_t const *,wchar_t const *,unsigned int)&quot; (?MessageBox@@$$J0YAHPAUHWND__@@PB_W1I@Z)</p>
<p>forms.obj : error LNK2019: unresolved external symbol &quot;extern &quot;C&quot; int __stdcall MessageBoxW(struct HWND__ *,wchar_t const *,wchar_t const *,unsigned int)&quot; (?MessageBoxW@@$$J216YGHPAUHWND__@@PB_W1I@Z) referenced in function &quot;extern &quot;C&quot; int __cdecl MessageBox(struct HWND__ *,wchar_t const *,wchar_t const *,unsigned int)&quot; (?MessageBox@@$$J0YAHPAUHWND__@@PB_W1I@Z)</p>
<p>*gekürzt*\Visual Studio 2005\Projects\HelloWorld\Debug\HelloWorld.exe : fatal error LNK1120: 2 unresolved externals</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/156239/linker-error-lnk2028-lnk2019</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 13:35:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/156239.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Aug 2006 23:41:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Linker Error LNK2028, LNK2019 on Mon, 14 Aug 2006 23:41:49 GMT]]></title><description><![CDATA[<p>Habe mir von msdn das Visual C++ 2005 Express und das Platform SDK gezogen (warte derzeit auf ein Paket von der Post mit der Vollversion). Will in die Programmierung mit der WinAPI einsteigen und dachte mir: &quot;machste doch erstmal Schritt 1 - Hello World ausm Petzold&quot;. Tja, nun steh ich da und weiß nicht weiter.<br />
Source-Code und Fehlermeldung:</p>
<pre><code>#include &lt;windows.h&gt;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
    PSTR szCmdLine, int iCmdShow)
{
	MessageBox(NULL, TEXT(&quot;Hello World!&quot;), TEXT(&quot;MSG&quot;), 0);
    return 0;
}
</code></pre>
<p>forms.obj : error LNK2028: unresolved token (0A000029) &quot;extern &quot;C&quot; int __stdcall MessageBoxW(struct HWND__ *,wchar_t const *,wchar_t const *,unsigned int)&quot; (?MessageBoxW@@$$J216YGHPAUHWND__@@PB_W1I@Z) referenced in function &quot;extern &quot;C&quot; int __cdecl MessageBox(struct HWND__ *,wchar_t const *,wchar_t const *,unsigned int)&quot; (?MessageBox@@$$J0YAHPAUHWND__@@PB_W1I@Z)</p>
<p>forms.obj : error LNK2019: unresolved external symbol &quot;extern &quot;C&quot; int __stdcall MessageBoxW(struct HWND__ *,wchar_t const *,wchar_t const *,unsigned int)&quot; (?MessageBoxW@@$$J216YGHPAUHWND__@@PB_W1I@Z) referenced in function &quot;extern &quot;C&quot; int __cdecl MessageBox(struct HWND__ *,wchar_t const *,wchar_t const *,unsigned int)&quot; (?MessageBox@@$$J0YAHPAUHWND__@@PB_W1I@Z)</p>
<p>*gekürzt*\Visual Studio 2005\Projects\HelloWorld\Debug\HelloWorld.exe : fatal error LNK1120: 2 unresolved externals</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1117317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1117317</guid><dc:creator><![CDATA[GastLNK1120]]></dc:creator><pubDate>Mon, 14 Aug 2006 23:41:49 GMT</pubDate></item><item><title><![CDATA[Reply to Linker Error LNK2028, LNK2019 on Tue, 15 Aug 2006 07:43:18 GMT]]></title><description><![CDATA[<p>Du muss User32.lib in dein Projekt einfügen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1117367</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1117367</guid><dc:creator><![CDATA[AZ]]></dc:creator><pubDate>Tue, 15 Aug 2006 07:43:18 GMT</pubDate></item></channel></rss>