<?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[noob sucht hilfe]]></title><description><![CDATA[<p>Hallo!</p>
<p>Also ich habe folgendes Problem erstmal den Code den ich bisher mir so zusammen gebastelt habe.... bitte schimpft mich nicht zu stark aus:</p>
<pre><code class="language-cpp">CString pfadangabe;
	CString speicher;
	LPCTSTR parametereins;
	int i;
	if (IsIconic())
	{
		CPaintDC dc(this); // Gerätekontext für Zeichnen

		SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

		// Symbol in Client-Rechteck zentrieren
		int cxIcon = GetSystemMetrics(SM_CXICON);
		int cyIcon = GetSystemMetrics(SM_CYICON);
		CRect rect;
		GetClientRect(&amp;rect);
		int x = (rect.Width() - cxIcon + 1) / 2;
		int y = (rect.Height() - cyIcon + 1) / 2;

		// Symbol zeichnen
		dc.DrawIcon(x, y, m_hIcon);
	}
	else
	{
		CDialog::OnPaint();
	}
	pfadangabe = /*s_Parameter*/&quot;\&quot;\\\\Bst_server\\user\\Boyens\\Aufgaben\\Viewer\\Debug\\Viewer.exe\&quot; \&quot;I:\\Ablage\\Stand Eisbunker ZS2.jpg\&quot;&quot;;
	i = 1;
	while(pfadangabe[i] != ' ') {
		speicher = speicher + pfadangabe.GetAt(i);
		i++;
	}
	speicher = speicher + pfadangabe.GetAt(i);
	pfadangabe.TrimLeft(speicher);
	pfadangabe.TrimLeft('&quot;');
	pfadangabe.TrimRight('&quot;');
	parametereins = pfadangabe;
	OleLoadPicturePath(/*L&quot;I:\\Ablage\\Stand Eisbunker ZS2.jpg&quot;*/(unsigned short *)parametereins, 0, 0, 0, IID_IPicture,(void **)&amp;m_bild); // läd das Bild
</code></pre>
<p>So das iss der Code schonmal und nun ist mein Problem folgendes:<br />
Ich habe in parametereins den richtigen wert drin stehen doch weiss ich nicht<br />
wie ich das nun umformatieren muss damit ich die Variable in OleLoadPicturePath<br />
benutzen kann.</p>
<p>Wäre für jede Hilfe dankbar.</p>
<p>mfg Manny</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/57308/noob-sucht-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Tue, 02 Jun 2026 12:53:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/57308.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Dec 2003 14:58:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to noob sucht hilfe on Wed, 03 Dec 2003 15:42:45 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Also ich habe folgendes Problem erstmal den Code den ich bisher mir so zusammen gebastelt habe.... bitte schimpft mich nicht zu stark aus:</p>
<pre><code class="language-cpp">CString pfadangabe;
	CString speicher;
	LPCTSTR parametereins;
	int i;
	if (IsIconic())
	{
		CPaintDC dc(this); // Gerätekontext für Zeichnen

		SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

		// Symbol in Client-Rechteck zentrieren
		int cxIcon = GetSystemMetrics(SM_CXICON);
		int cyIcon = GetSystemMetrics(SM_CYICON);
		CRect rect;
		GetClientRect(&amp;rect);
		int x = (rect.Width() - cxIcon + 1) / 2;
		int y = (rect.Height() - cyIcon + 1) / 2;

		// Symbol zeichnen
		dc.DrawIcon(x, y, m_hIcon);
	}
	else
	{
		CDialog::OnPaint();
	}
	pfadangabe = /*s_Parameter*/&quot;\&quot;\\\\Bst_server\\user\\Boyens\\Aufgaben\\Viewer\\Debug\\Viewer.exe\&quot; \&quot;I:\\Ablage\\Stand Eisbunker ZS2.jpg\&quot;&quot;;
	i = 1;
	while(pfadangabe[i] != ' ') {
		speicher = speicher + pfadangabe.GetAt(i);
		i++;
	}
	speicher = speicher + pfadangabe.GetAt(i);
	pfadangabe.TrimLeft(speicher);
	pfadangabe.TrimLeft('&quot;');
	pfadangabe.TrimRight('&quot;');
	parametereins = pfadangabe;
	OleLoadPicturePath(/*L&quot;I:\\Ablage\\Stand Eisbunker ZS2.jpg&quot;*/(unsigned short *)parametereins, 0, 0, 0, IID_IPicture,(void **)&amp;m_bild); // läd das Bild
</code></pre>
<p>So das iss der Code schonmal und nun ist mein Problem folgendes:<br />
Ich habe in parametereins den richtigen wert drin stehen doch weiss ich nicht<br />
wie ich das nun umformatieren muss damit ich die Variable in OleLoadPicturePath<br />
benutzen kann.</p>
<p>Wäre für jede Hilfe dankbar.</p>
<p>mfg Manny</p>
]]></description><link>https://www.c-plusplus.net/forum/post/407597</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/407597</guid><dc:creator><![CDATA[DerManny]]></dc:creator><pubDate>Wed, 03 Dec 2003 15:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to noob sucht hilfe on Wed, 03 Dec 2003 14:59:24 GMT]]></title><description><![CDATA[<p>darf ich dich ins mfc forum verweisen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/407599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/407599</guid><dc:creator><![CDATA[1ntrud0r]]></dc:creator><pubDate>Wed, 03 Dec 2003 14:59:24 GMT</pubDate></item><item><title><![CDATA[Reply to noob sucht hilfe on Wed, 03 Dec 2003 15:34:29 GMT]]></title><description><![CDATA[<p>ups... übersehen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
. schon verschoben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/407658</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/407658</guid><dc:creator><![CDATA[davie]]></dc:creator><pubDate>Wed, 03 Dec 2003 15:34:29 GMT</pubDate></item><item><title><![CDATA[Reply to noob sucht hilfe on Wed, 03 Dec 2003 15:52:45 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">LPCTSTR pPic = m_cPfad;	// m_cPfad ist vom Typ CString

// dieses Konstrukt hier benötigt	#include &lt;afxpriv.h&gt;	Muss also an den Anfang dieser cpp !
USES_CONVERSION;
OleLoadPicturePath(T2OLE(pPic), NULL, 0, 0, IID_IPicture,(void**)(&amp;m_bild));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/407678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/407678</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Wed, 03 Dec 2003 15:52:45 GMT</pubDate></item><item><title><![CDATA[Reply to noob sucht hilfe on Wed, 03 Dec 2003 16:02:25 GMT]]></title><description><![CDATA[<p>Dankö<br />
Endlich hab ich mein Prog fertig *freu*</p>
<p>An alle einen dank die mir in letzter zeit weiter geholfen haben.</p>
<p>mfg Manny</p>
]]></description><link>https://www.c-plusplus.net/forum/post/407690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/407690</guid><dc:creator><![CDATA[DerManny]]></dc:creator><pubDate>Wed, 03 Dec 2003 16:02:25 GMT</pubDate></item></channel></rss>