<?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[MAPI]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe da ein Problem...</p>
<p>und zwar möchte ich lernen die MAPI zu verstehen nur leider finde ich dazu nur<br />
MFC Tutorials und da ich da nicht durchsteige wollte ich nun einmal euch fragen, ob jemand so nett wäre mir ein kleines Sample Code Proggy zu basteln, was ohn MFC eine E-Mail ausliest ( aus Outlook Express ) und den Text ausgibt.</p>
<p>Das sollte nicht viel sein wie ich es in den anderen Beispiel anwendungen gesehen habe !</p>
<p>Oder hat jemand ein gutes Deutsches Tutorial zu dem Thema (ohne MFC)?</p>
<p>Vielen Dank !</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/79224/mapi</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 20:09:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/79224.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Jul 2004 22:59:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MAPI on Thu, 08 Jul 2004 22:59:30 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe da ein Problem...</p>
<p>und zwar möchte ich lernen die MAPI zu verstehen nur leider finde ich dazu nur<br />
MFC Tutorials und da ich da nicht durchsteige wollte ich nun einmal euch fragen, ob jemand so nett wäre mir ein kleines Sample Code Proggy zu basteln, was ohn MFC eine E-Mail ausliest ( aus Outlook Express ) und den Text ausgibt.</p>
<p>Das sollte nicht viel sein wie ich es in den anderen Beispiel anwendungen gesehen habe !</p>
<p>Oder hat jemand ein gutes Deutsches Tutorial zu dem Thema (ohne MFC)?</p>
<p>Vielen Dank !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/556488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/556488</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Thu, 08 Jul 2004 22:59:30 GMT</pubDate></item><item><title><![CDATA[Reply to MAPI on Fri, 09 Jul 2004 18:25:24 GMT]]></title><description><![CDATA[<p>Immer diese verdammten MFC user..<br />
und scheiss MFC..</p>
<p>irgendwie finde ich auch immer keinen winapi-tuts sondern immer nur scheiss mfc- und vb-tutorials in übermengen.</p>
<p>Es könnte daran liegen, dass mfc unf vb von dümmeren genutzt werden und diese halt mehr tuts erstellen / erfragen / etc...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557088</guid><dc:creator><![CDATA[pfffff...]]></dc:creator><pubDate>Fri, 09 Jul 2004 18:25:24 GMT</pubDate></item><item><title><![CDATA[Reply to MAPI on Sat, 10 Jul 2004 13:47:35 GMT]]></title><description><![CDATA[<p>Jo das stimmt schon aber das bringt mich leider auch nicht wirklich weiter <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="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/557485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557485</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Sat, 10 Jul 2004 13:47:35 GMT</pubDate></item><item><title><![CDATA[Reply to MAPI on Sat, 10 Jul 2004 20:37:14 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>vielleicht als Ausgangspunkt für &quot;weitere Studien&quot; <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> :</p>
<p><a href="http://support.microsoft.com/?kbid=171096" rel="nofollow">http://support.microsoft.com/?kbid=171096</a></p>
<p><a href="http://support.microsoft.com/?kbid=239795" rel="nofollow">http://support.microsoft.com/?kbid=239795</a></p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557800</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Sat, 10 Jul 2004 20:37:14 GMT</pubDate></item><item><title><![CDATA[Reply to MAPI on Sat, 10 Jul 2004 20:50:06 GMT]]></title><description><![CDATA[<p>Gibts Mapi.dll auf allen NTs oder muss man die DLL gegebenenfalls nachinstallieren?</p>
<p>Ich dachte immer MAPI-Applikationen seien mist, weil sie sehr abhängig sind und die dll nicht immer da ist.</p>
<p>Wie ist es nun??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557809</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557809</guid><dc:creator><![CDATA[Frager..]]></dc:creator><pubDate>Sat, 10 Jul 2004 20:50:06 GMT</pubDate></item><item><title><![CDATA[Reply to MAPI on Sat, 10 Jul 2004 20:54:08 GMT]]></title><description><![CDATA[<p>MAPI.DLL ist auf ALLEN gängigen Windows Versionen verfügbar.<br />
Mapi ist ja nciht nur für e-mails da und wird auch von sehr vielen MS_Proggies wie outlook benutzt.</p>
<p>Eine Eigenschaft für die MAPI.dll bekannt ist ist die Portablität, da sie gerade auf ALLEN Windows Plattformen problemlos funktioniert ;))</p>
<p>Mfg Tolga.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557811</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557811</guid><dc:creator><![CDATA[Tolga]]></dc:creator><pubDate>Sat, 10 Jul 2004 20:54:08 GMT</pubDate></item><item><title><![CDATA[Reply to MAPI on Sat, 10 Jul 2004 22:33:14 GMT]]></title><description><![CDATA[<p>Hi !</p>
<p>Danke erstmal für die 2 links !</p>
<p>Ich hab nun nur ein Problem...</p>
<p>undzwar ist der erste link genau das was ich will !</p>
<p>Das Problem daran ist, dass es Speicher fehler verursacht...</p>
<p>Ich habe VC++ 6.0</p>
<p>Dies ist die für mich wichtige funktion die nen Speicher fehler verursacht (Nicht abgefangene Ausnahme in swap.exe: 0xC0000005: Access Violation.)</p>
<pre><code class="language-cpp">STDMETHODIMP CApp::cFindMessageID ( LPTSTR SeedMsgID, FLAGS flFlags, LPTSTR *prgchMsgID )
{
	HRESULT hRes = S_OK;
	ULONG ulReserved = 0L;
	char rgchMsgID[MAX_MSGID];

	hRes = m_MAPIFindNext (
							m_lhSession,	// Global session handle
							0L,				// Parent window. Set to 0 since console app
							NULL,			// NULL specifies interpersonal mail message
							SeedMsgID,		// Seed message ID; NULL == get first message
							flFlags,
							ulReserved,		// Reserved.  Must be 0L
							rgchMsgID
						   );

	if ( hRes == MAPI_E_NO_MESSAGES )
	{
		printf ( &quot;No messages to print.\r\n&quot; );
	}

	if ( hRes != SUCCESS_SUCCESS &amp;&amp; hRes != MAPI_E_NO_MESSAGES )
	{
		printf ( &quot;Call to MAPIFindNext failed due to error code %d.\r\n&quot;, hRes );
		switch ( hRes )
		{
		case MAPI_E_FAILURE:
			printf ( &quot;One or more unspecified errors occurred while matching the message type. The call failed before message type matching could take place.\r\n&quot; );
			break;
		case MAPI_E_INSUFFICIENT_MEMORY:
			printf ( &quot;There was insufficient memory to proceed. No message was found.\r\n&quot; );
			break;
		case MAPI_E_INVALID_MESSAGE:
			printf ( &quot;An invalid message identifier was passed in the lpszSeedMessageID parameter. No message was found.\r\n&quot; );
			break;
		case MAPI_E_INVALID_SESSION:
			printf ( &quot;An invalid session handle was passed in the lhSession parameter. No message was found.\r\n&quot; );
			break;
		default:
			printf ( &quot;Unknown error code.\r\n&quot; );
			break;
		}
	}
	else
	{
		MAPIAllocateBuffer (strlen ( rgchMsgID )+1, (LPVOID *) prgchMsgID );
		strcpy ( *prgchMsgID, rgchMsgID );
	}

	return hRes;
}
</code></pre>
<p>Der fehler tritt hier auf:</p>
<p>strcpy ( *prgchMsgID, rgchMsgID );</p>
<p>Aufgerufen wird die funktion so:</p>
<pre><code class="language-cpp">if ( SUCCESS_SUCCESS == ( hRes = cFindMessageID ( NULL, MAPI_LONG_MSGID | MAPI_UNREAD_ONLY, &amp;prgchMsgID ) ) )
</code></pre>
<p>Dort ist prgchMsgID so declariert:</p>
<pre><code class="language-cpp">STDMETHODIMP CApp::cReadMail ( ULONG ReadFlags, LPTSTR prgchMsgID )
</code></pre>
<p>Kann mir jemand bei der lösung helfen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557854</guid><dc:creator><![CDATA[Karigos]]></dc:creator><pubDate>Sat, 10 Jul 2004 22:33:14 GMT</pubDate></item></channel></rss>