<?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[bekomm Active Desktop nicht]]></title><description><![CDATA[<p>mahlzeit</p>
<p>ich bekomm einfach das IActiveDesktop nicht in mein projekt<br />
ich hab schon die shlobj includiert - auch _WININET_ und alles moegliche probiert was ich bei google gefunden hab</p>
<p>ich benutz visual studio 2005</p>
<p>die MSDN hab ich acuh rauf und runter gelesen - ich komm einfach nicht vorran<br />
immer heisst es er kenne dieses IActiveDesktop nicht }=</p>
<p>hilfeeee</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/150327/bekomm-active-desktop-nicht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 03:30:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/150327.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Jun 2006 12:20:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 12:20:14 GMT]]></title><description><![CDATA[<p>mahlzeit</p>
<p>ich bekomm einfach das IActiveDesktop nicht in mein projekt<br />
ich hab schon die shlobj includiert - auch _WININET_ und alles moegliche probiert was ich bei google gefunden hab</p>
<p>ich benutz visual studio 2005</p>
<p>die MSDN hab ich acuh rauf und runter gelesen - ich komm einfach nicht vorran<br />
immer heisst es er kenne dieses IActiveDesktop nicht }=</p>
<p>hilfeeee</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078137</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078137</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 15 Jun 2006 12:20:14 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 15:31:13 GMT]]></title><description><![CDATA[<p>Folgendes geht bei mir Problemlos mit VS2005:</p>
<pre><code class="language-cpp">#define _WIN32_IE 0x400
#include &lt;windows.h&gt;
#include &lt;tchar.h&gt;
#include &lt;wininet.h&gt;
#include &lt;shlobj.h&gt;

int _tmain(int argc, _TCHAR* argv[])
{
  HRESULT hr;
  IActiveDesktop *pActiveDesktop;
  hr = CoCreateInstance(CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER,
    IID_IActiveDesktop, (void**)&amp;pActiveDesktop);
  pActiveDesktop-&gt;Release();
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1078293</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078293</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 15 Jun 2006 15:31:13 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 16:26:57 GMT]]></title><description><![CDATA[<p>hmm - schlau werd ich irgendwie nicht daraus<br />
wenn ich ein leeres projekt erstell, funktioniert das problemlos<br />
wenn ich das aber in ein MFC projekt paste, dann funktioniert das nicht</p>
<p>versteh ich nicht<br />
sind die selben header<br />
sobald das IActiveDesktop kommt streikts</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078354</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 15 Jun 2006 16:26:57 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 16:28:54 GMT]]></title><description><![CDATA[<p>Du musst in Deinen Projekteinstellungen in den Proprozessor-Directivs das</p>
<blockquote>
<p>_WIN32_IE=0x400</p>
</blockquote>
<p>hinzufügen.<br />
Dann natürlich noch in der stdafx.h<br />
das</p>
<pre><code class="language-cpp">#include &lt;wininet.h&gt;
#include &lt;shlobj.h&gt;
</code></pre>
<p>einfügen (in dieser Reihenfolge!)</p>
<p>Dann sollte es auch mit einem MFC Programm gehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078356</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 15 Jun 2006 16:28:54 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 16:38:36 GMT]]></title><description><![CDATA[<p>hab ich nu gemacht, das mit den programmeinstellungen wusste ich ne<br />
trotzdem kommt weiterhin</p>
<pre><code>Error	1	error C2065: 'IActiveDesktop' : undeclared identifier	e:\cpp\wall2005\wall2005\wall2005.cpp	19
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1078368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078368</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 15 Jun 2006 16:38:36 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 18:13:50 GMT]]></title><description><![CDATA[<p>was mir grad aufgefallen ist</p>
<p>wenn ich ein MFC projekt erstell ist bereits das enthalten in der stdafx</p>
<pre><code class="language-cpp">#ifndef _WIN32_IE			// Allow use of features specific to IE 6.0 or later.
#define _WIN32_IE 0x0600	// Change this to the appropriate value to target other versions of IE.
#endif
</code></pre>
<p>#dazuedit#</p>
<p>bin nu soweit das er fehlerfrei compiliert, ich hab das so gelassen, das 0x400 nicht geschrieben<br />
ich hab in der stdafx die wininet.h direkt unter afxext.h gesetzt, und das shlobj.h direkt unten drann</p>
<p>aaaaaaaaber - wenn cih die exe starte - kommt: &quot; The Instruction at &quot;0x00411585&quot; referenced memory at &quot;0x00000000&quot;. The memory could not be &quot;read&quot; &quot; fehlermeldung</p>
<p>ich habs so wie in dem beispiel aus der MSDN aufgerufen /=</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078410</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078410</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 15 Jun 2006 18:13:50 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 18:17:25 GMT]]></title><description><![CDATA[<p>Wenn Du einen Fehler gemacht hast, solltest Du einfach debuggen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078425</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078425</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 15 Jun 2006 18:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 18:20:44 GMT]]></title><description><![CDATA[<p>mach ich bereits</p>
<pre><code class="language-cpp">int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
	int nRetCode = 0;

	HRESULT hr;
	IActiveDesktop *pActiveDesktop;

	hr = CoCreateInstance(CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER,
                      IID_IActiveDesktop, (void**)&amp;pActiveDesktop);

	pActiveDesktop-&gt;Release();

	// initialize MFC and print and error on failure
</code></pre>
<p>wenn ich pActiveDesktop-&gt;Release(); auskommentier gehts, wenn nicht kommt dort der fehler, der debugger hilft gar nicht, der sagt an dieser stelle nur acess violation, also das ich auf den zeiger kein zugriff im speicher hab - versteh ich nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078428</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078428</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 15 Jun 2006 18:20:44 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 18:24:32 GMT]]></title><description><![CDATA[<p>Dann solltest Du vielleicht man den Rückgabewert von &quot;CoCreateInstance&quot; auswerten...<br />
Dir fehlt nämlich noch ein CoInitialize(Ex)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078432</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078432</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 15 Jun 2006 18:24:32 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 18:31:15 GMT]]></title><description><![CDATA[<p>ich hab grad gemerkt<br />
wenn ich ein leeres projekt erstell und in einer einzelnen .cpp datei das einfueg</p>
<pre><code class="language-cpp">#define _WIN32_IE 0x400
#include &lt;windows.h&gt;
#include &lt;tchar.h&gt;
#include &lt;wininet.h&gt;
#include &lt;shlobj.h&gt;

int _tmain(int argc, _TCHAR* argv[])
{
  HRESULT hr;
  IActiveDesktop *pActiveDesktop;
  hr = CoCreateInstance(CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER,
    IID_IActiveDesktop, (void**)&amp;pActiveDesktop);
  pActiveDesktop-&gt;Release();
  return 0;
}
</code></pre>
<p>compiliert der fehlerfrei, aber kommt das selbe problem</p>
<p>von CoInitialize hab ich bisher nirgends gelesen, auch in der MSDN nicht {zu dem problem}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078443</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078443</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 15 Jun 2006 18:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 18:35:41 GMT]]></title><description><![CDATA[<p>Aber Du hast schon mal von <a href="http://google.de" rel="nofollow">google.de</a> gehört, oder?</p>
<p><a href="http://msdn.microsoft.com/library/en-us/com/html/0f171cf4-87b9-43a6-97f2-80ed344fe376.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/com/html/0f171cf4-87b9-43a6-97f2-80ed344fe376.asp</a><br />
<a href="http://www.microsoft.co.ke/germany/msdn/library/components/AchtLektionenZumThemaCOM.mspx" rel="nofollow">http://www.microsoft.co.ke/germany/msdn/library/components/AchtLektionenZumThemaCOM.mspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078453</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 15 Jun 2006 18:35:41 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 18:42:54 GMT]]></title><description><![CDATA[<p>das ich nach CoInitialize in der MSDN schau ist mir schon klar, hab cih auch gemacht und eingebaut<br />
nuuuuur - woher sollte ich wissen das ich das aufrufen muss, in der MSDN und auch sonst ueberall in google steht zu IActiveDesktop nirgends dieser aufruf</p>
<p>ich hab den nu drinne - compiliert fehlerfrei - und das programm laeuft auch fehlerfrei</p>
<p>nur -&gt;SetWallpaper wird ignoriert</p>
<pre><code class="language-cpp">HRESULT hr;
IActiveDesktop *pActiveDesktop;
CoInitialize( NULL );
hr = CoCreateInstance(CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER, IID_IActiveDesktop, (void**)&amp;pActiveDesktop);
pActiveDesktop-&gt;SetWallpaper( L&quot;C:\2.jpg&quot;, NULL );
pActiveDesktop-&gt;Release();
</code></pre>
<p>commandbox geht kurz auf - verschwindet gleich wieder ohne eine aenderung</p>
<p>auf jeden fall vielen dank fuer deine geduld !!!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078459</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 15 Jun 2006 18:42:54 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 18:53:51 GMT]]></title><description><![CDATA[<p>&quot;C:\2.jpg&quot; -&gt; &quot;C:\\2.jpg&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078471</guid><dc:creator><![CDATA[000]]></dc:creator><pubDate>Thu, 15 Jun 2006 18:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Thu, 15 Jun 2006 19:01:05 GMT]]></title><description><![CDATA[<p>Du hast immer noch nicht die Rückgabewerte geprüft! Dann wäre Dir auch aufgefallen, dass man CoInitialize aufrufen muss!!!</p>
<p>Aber ich halte mich jetzt hier raus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078476</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078476</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 15 Jun 2006 19:01:05 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Fri, 16 Jun 2006 05:33:10 GMT]]></title><description><![CDATA[<p>000 schrieb:</p>
<blockquote>
<p>&quot;C:\2.jpg&quot; -&gt; &quot;C:\\2.jpg&quot;</p>
</blockquote>
<p>hab ich gemacht, war mir auch aufgefallen - keine aenderung, erscheint kein neues bild</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/5675">@jochen</a><br />
ich bedanke mich nochmal fuer deine geduld, kann deine jetzige reaktion verstehen {o;<br />
ps. ich hab bereits CInitialize aufgerufen, siehe den source</p>
<p>#dazuedit<br />
mein problem war, ich hab das<br />
pActiveDesktop-&gt;ApplyChanges(AD_APPLY_ALL);<br />
vergessen</p>
<p>nu funktioniert alles<br />
[thread geloest]</p>
<p>vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078626</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Fri, 16 Jun 2006 05:33:10 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Fri, 16 Jun 2006 05:34:49 GMT]]></title><description><![CDATA[<p>Vermutlich musst Du noch den ActiveDesktop zuerst mal aktivieren mit SetDesktopItemOptions und fActiveDesktop=TRUE<br />
Und natürlich noch &quot;ApplyChanges&quot;...<br />
Siehe<br />
<a href="http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/activedesktop.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_adv/activedesktop.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1078628</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078628</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 16 Jun 2006 05:34:49 GMT</pubDate></item><item><title><![CDATA[Reply to bekomm Active Desktop nicht on Fri, 16 Jun 2006 06:18:38 GMT]]></title><description><![CDATA[<p>ne brauch ich nicht aktivieren - ist bereits - da es nun problemlos funktioniert</p>
<p>danke fuer die geduld, topic kann als [solve] betitelt werden #gg</p>
<pre><code class="language-cpp">HRESULT hr;
IActiveDesktop *pActiveDesktop;
CoInitialize( NULL );
hr = CoCreateInstance(CLSID_ActiveDesktop, NULL, CLSCTX_INPROC_SERVER, IID_IActiveDesktop, (void**)&amp;pActiveDesktop);

pActiveDesktop-&gt;SetWallpaper( L&quot;C:\\115.jpg&quot;, NULL );
pActiveDesktop-&gt;ApplyChanges(AD_APPLY_ALL);

pActiveDesktop-&gt;Release();
</code></pre>
<p>sehr komisch find ich nur, das ich wininet.h direkt unter afxext setzen muss damit es funktioniert, wenn ich es tiefer anordne bekomm ich nur schwierigkeiten</p>
<pre><code class="language-cpp">.
.
.
#include &lt;afx.h&gt;
#include &lt;afxwin.h&gt;         // MFC core and standard components
#include &lt;afxext.h&gt;         // MFC extensions

#include &lt;wininet.h&gt;		// IActiveDesktop

#ifndef _AFX_NO_OLE_SUPPORT
#include &lt;afxdtctl.h&gt;		// MFC support for Internet Explorer 4 Common Controls
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include &lt;afxcmn.h&gt;			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include &lt;iostream&gt;

// TODO: reference additional headers your program requires here
#include &lt;shlobj.h&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1078641</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1078641</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Fri, 16 Jun 2006 06:18:38 GMT</pubDate></item></channel></rss>