<?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[Problem beim Linking]]></title><description><![CDATA[<p>Hallo rundherum,<br />
ich habe ein Problem beim Linken des folgenden Programms:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;aclapi.h&gt;
#include &lt;lmerr.h&gt;
#include &lt;windows.h&gt;
using namespace System;

int main(array&lt;System::String ^&gt; ^args)
{
    LPWSTR mystr = L&quot;c:\\autoexec.bat&quot;;
    GetNamedSecurityInfo(mystr, SE_FILE_OBJECT,DACL_SECURITY_INFORMATION, NULL, NULL, NULL, NULL, NULL);
    return 0;
}
</code></pre>
<p>Die Fehlermeldung lautet:</p>
<blockquote>
<p>Verknüpfen...<br />
clrtest.obj : error LNK2028: Nicht aufgelöstes Token (0A00000B) &quot;&quot;extern &quot;C&quot; unsigned long __stdcall GetNamedSecurityInfoW(wchar_t *,enum _SE_OBJECT_TYPE,unsigned long,void * *,void * *,struct _ACL * *,struct _ACL * *,void * *)&quot; (?GetNamedSecurityInfoW@@$$J232YGKPA_WW4_SE_OBJECT_TYPE@@KPAPAX2PAPAU_ACL@@32@Z)&quot;, auf das in Funktion &quot;&quot;int __clrcall main(cli::array&lt;class System::String ^ &gt;^)&quot; (?main@@$$HYMHP<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mn>1</mn><mi>A</mi><mi>P</mi></mrow><annotation encoding="application/x-tex">01AP</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.13889em;">P</span></span></span></span>AAVString@System@@@Z)&quot; verwiesen wird.<br />
clrtest.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;extern &quot;C&quot; unsigned long __stdcall GetNamedSecurityInfoW(wchar_t *,enum _SE_OBJECT_TYPE,unsigned long,void * *,void * *,struct _ACL * *,struct _ACL * *,void * *)&quot; (?GetNamedSecurityInfoW@@$$J232YGKPA_WW4_SE_OBJECT_TYPE@@KPAPAX2PAPAU_ACL@@32@Z)&quot; in Funktion &quot;&quot;int __clrcall main(cli::array&lt;class System::String ^ &gt;^)&quot; (?main@@$$HYMHP<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mn>1</mn><mi>A</mi><mi>P</mi></mrow><annotation encoding="application/x-tex">01AP</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.13889em;">P</span></span></span></span>AAVString@System@@@Z)&quot;.</p>
</blockquote>
<p>Leider sagen mir diese Meldungen nicht besonders viel... ich setze Visual C++ Express Edition und das SDK für Windows Server 2003 R2 ein.</p>
<p>Vielleicht hat einer von euch eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160723/problem-beim-linking</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 19:46:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160723.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Sep 2006 18:31:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem beim Linking on Thu, 28 Sep 2006 18:31:26 GMT]]></title><description><![CDATA[<p>Hallo rundherum,<br />
ich habe ein Problem beim Linken des folgenden Programms:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;aclapi.h&gt;
#include &lt;lmerr.h&gt;
#include &lt;windows.h&gt;
using namespace System;

int main(array&lt;System::String ^&gt; ^args)
{
    LPWSTR mystr = L&quot;c:\\autoexec.bat&quot;;
    GetNamedSecurityInfo(mystr, SE_FILE_OBJECT,DACL_SECURITY_INFORMATION, NULL, NULL, NULL, NULL, NULL);
    return 0;
}
</code></pre>
<p>Die Fehlermeldung lautet:</p>
<blockquote>
<p>Verknüpfen...<br />
clrtest.obj : error LNK2028: Nicht aufgelöstes Token (0A00000B) &quot;&quot;extern &quot;C&quot; unsigned long __stdcall GetNamedSecurityInfoW(wchar_t *,enum _SE_OBJECT_TYPE,unsigned long,void * *,void * *,struct _ACL * *,struct _ACL * *,void * *)&quot; (?GetNamedSecurityInfoW@@$$J232YGKPA_WW4_SE_OBJECT_TYPE@@KPAPAX2PAPAU_ACL@@32@Z)&quot;, auf das in Funktion &quot;&quot;int __clrcall main(cli::array&lt;class System::String ^ &gt;^)&quot; (?main@@$$HYMHP<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mn>1</mn><mi>A</mi><mi>P</mi></mrow><annotation encoding="application/x-tex">01AP</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.13889em;">P</span></span></span></span>AAVString@System@@@Z)&quot; verwiesen wird.<br />
clrtest.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;extern &quot;C&quot; unsigned long __stdcall GetNamedSecurityInfoW(wchar_t *,enum _SE_OBJECT_TYPE,unsigned long,void * *,void * *,struct _ACL * *,struct _ACL * *,void * *)&quot; (?GetNamedSecurityInfoW@@$$J232YGKPA_WW4_SE_OBJECT_TYPE@@KPAPAX2PAPAU_ACL@@32@Z)&quot; in Funktion &quot;&quot;int __clrcall main(cli::array&lt;class System::String ^ &gt;^)&quot; (?main@@$$HYMHP<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>0</mn><mn>1</mn><mi>A</mi><mi>P</mi></mrow><annotation encoding="application/x-tex">01AP</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">0</span><span class="mord mathrm">1</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.13889em;">P</span></span></span></span>AAVString@System@@@Z)&quot;.</p>
</blockquote>
<p>Leider sagen mir diese Meldungen nicht besonders viel... ich setze Visual C++ Express Edition und das SDK für Windows Server 2003 R2 ein.</p>
<p>Vielleicht hat einer von euch eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1146115</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1146115</guid><dc:creator><![CDATA[ck]]></dc:creator><pubDate>Thu, 28 Sep 2006 18:31:26 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim Linking on Thu, 28 Sep 2006 19:37:51 GMT]]></title><description><![CDATA[<p>Füge noch ein</p>
<pre><code class="language-cpp">#pragma comment(lib, &quot;Advapi32.lib&quot;)
</code></pre>
<p>ein.</p>
<p>PS: Du verwendest explizit LP<strong>W</strong>STR, aber die Funktion will einen LPC<strong>T</strong>STR!</p>
<p>PPS: Und wenn Du <strong>nur</strong> WinAPI machst, solltest/brauchst Du keine C++/CLI Projekt erzuegen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1146161</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1146161</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 28 Sep 2006 19:37:51 GMT</pubDate></item><item><title><![CDATA[Reply to Problem beim Linking on Fri, 29 Sep 2006 07:45:55 GMT]]></title><description><![CDATA[<p>Richtig gute Hilfe, vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1146336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1146336</guid><dc:creator><![CDATA[ck]]></dc:creator><pubDate>Fri, 29 Sep 2006 07:45:55 GMT</pubDate></item></channel></rss>