<?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[ShellExecute]]></title><description><![CDATA[<p>hi,</p>
<p>ZB:</p>
<pre><code class="language-cpp">ShellExecute(NULL,&quot;open&quot;,&quot;C:\\blabla.exe&quot;, NULL, NULL, SW_SHOW);
</code></pre>
<p>hatte super bei devcpp geklappt, sber seit dem ich auf vc++ um gestiegen bin geht alles schief<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
hab auch schon so versucht:</p>
<pre><code class="language-cpp">ShellExecute(NULL,L&quot;open&quot;,L&quot;C:\\blabla.exe&quot;, NULL, NULL, SW_SHOW); 

oder 

ShellExecute(NULL,_T(&quot;open&quot;),T_(&quot;C:\\blabla.exe&quot;), NULL, NULL, SW_SHOW);
</code></pre>
<p>die includeten headerdatein:#include &lt;windows.h&gt;<br />
#include &lt;tchar.h&gt;<br />
#include &lt;shellapi.h&gt;</p>
<p>Aber da kommen immer 2 errors</p>
<pre><code>Error	1	error LNK2028: unresolved token (0A000015) &quot;extern &quot;C&quot; struct HINSTANCE__ * __stdcall ShellExecuteW(struct HWND__ *,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,int)&quot; (?ShellExecuteW@@$$J224YGPAUHINSTANCE__@@PAUHWND__@@PB_W111H@Z) referenced in function &quot;private: void __clrcall loop::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)&quot; (?button1_Click@Form1@loop@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)	loop.obj

Error	2	error LNK2019: unresolved external symbol &quot;extern &quot;C&quot; struct HINSTANCE__ * __stdcall ShellExecuteW(struct HWND__ *,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,int)&quot; (?ShellExecuteW@@$$J224YGPAUHINSTANCE__@@PAUHWND__@@PB_W111H@Z) referenced in function &quot;private: void __clrcall loop::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)&quot; (?button1_Click@Form1@loop@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)	loop.obj
</code></pre>
<p>seit dem ich auf vc++ 2005 umgestiegen bin gibts nur noch errors auch bei vc++2008 beta2</p>
<p>Bitte um Hilfe<br />
Mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/190848/shellexecute</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 10:46:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/190848.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Aug 2007 16:17:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ShellExecute on Mon, 27 Aug 2007 16:17:38 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ZB:</p>
<pre><code class="language-cpp">ShellExecute(NULL,&quot;open&quot;,&quot;C:\\blabla.exe&quot;, NULL, NULL, SW_SHOW);
</code></pre>
<p>hatte super bei devcpp geklappt, sber seit dem ich auf vc++ um gestiegen bin geht alles schief<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
hab auch schon so versucht:</p>
<pre><code class="language-cpp">ShellExecute(NULL,L&quot;open&quot;,L&quot;C:\\blabla.exe&quot;, NULL, NULL, SW_SHOW); 

oder 

ShellExecute(NULL,_T(&quot;open&quot;),T_(&quot;C:\\blabla.exe&quot;), NULL, NULL, SW_SHOW);
</code></pre>
<p>die includeten headerdatein:#include &lt;windows.h&gt;<br />
#include &lt;tchar.h&gt;<br />
#include &lt;shellapi.h&gt;</p>
<p>Aber da kommen immer 2 errors</p>
<pre><code>Error	1	error LNK2028: unresolved token (0A000015) &quot;extern &quot;C&quot; struct HINSTANCE__ * __stdcall ShellExecuteW(struct HWND__ *,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,int)&quot; (?ShellExecuteW@@$$J224YGPAUHINSTANCE__@@PAUHWND__@@PB_W111H@Z) referenced in function &quot;private: void __clrcall loop::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)&quot; (?button1_Click@Form1@loop@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)	loop.obj

Error	2	error LNK2019: unresolved external symbol &quot;extern &quot;C&quot; struct HINSTANCE__ * __stdcall ShellExecuteW(struct HWND__ *,wchar_t const *,wchar_t const *,wchar_t const *,wchar_t const *,int)&quot; (?ShellExecuteW@@$$J224YGPAUHINSTANCE__@@PAUHWND__@@PB_W111H@Z) referenced in function &quot;private: void __clrcall loop::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)&quot; (?button1_Click@Form1@loop@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)	loop.obj
</code></pre>
<p>seit dem ich auf vc++ 2005 umgestiegen bin gibts nur noch errors auch bei vc++2008 beta2</p>
<p>Bitte um Hilfe<br />
Mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1353162</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1353162</guid><dc:creator><![CDATA[CantStOp]]></dc:creator><pubDate>Mon, 27 Aug 2007 16:17:38 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute on Mon, 27 Aug 2007 18:04:04 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#pragma comment(lib, &quot;shell32.lib&quot;)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1353228</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1353228</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 27 Aug 2007 18:04:04 GMT</pubDate></item></channel></rss>