<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Normale Seite ohne Titel</title>
</head>
<body bgcolor="#FFFFFF">
<p>Hallo, ich versuche gerade das MFC Beispiel von der Site <a
href="http://msdn.microsoft.com/library/techart/msdn_shellnk1.htm">http://msdn.microsoft.com/library/techart/msdn_shellnk1.htm</a>
in mein BC5.02 Projekt einzubauen. Nach dem Aptippen einiger
Zeilen lasse ich meinen Code compilieren und erhalte in der
CoCreateInstance - Zeile folgende Fehler:</p>
<p><strong>Type mismatch in parameter 'rclsid' in call to
'CoCreateInstance'</strong></p>
<p><strong>Type mismatch in parameter 'riid' in call to
'CoCreateInstance'</strong></p>
<p>Wat is denn nu schon wieder los ??? Hier mein Code:</p>
<pre>
#include <shlobj.h>
HRESULT CreateIt(LPCSTR pszShortCutFile, LPSTR pszLink, LPSTR pszDesc)
{
HRESULT hres;
IShellLink* psl;
hres=CoCreateInstance(
CLSID_ShellLink, <em>// REFCLSID rclsid</em>
NULL, <em>// LPUNKNOWN pUnkOuter</em>
CLSCTX_INPROC_SERVER, <em>// DWORD dwClsContext</em>
IID_IShellLink, <em>// REFIID riid</em>
&psl); <em>// LPVOID *ppv</em>
<em>// weiter bin ich noch nicht</em>
}
</pre>
<p>Wer kann mir helfen ? Danke - Günther </p>
<p> </p>
<p> </p>
</body>
</html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Normale Seite ohne Titel</title>
</head>
<body bgcolor="#FFFFFF">
<p>Hallo, ich versuche gerade das MFC Beispiel von der Site <a
href="http://msdn.microsoft.com/library/techart/msdn_shellnk1.htm">http://msdn.microsoft.com/library/techart/msdn_shellnk1.htm</a>
in mein BC5.02 Projekt einzubauen. Nach dem Aptippen einiger
Zeilen lasse ich meinen Code compilieren und erhalte in der
CoCreateInstance - Zeile folgende Fehler:</p>
<p><strong>Type mismatch in parameter 'rclsid' in call to
'CoCreateInstance'</strong></p>
<p><strong>Type mismatch in parameter 'riid' in call to
'CoCreateInstance'</strong></p>
<p>Wat is denn nu schon wieder los ??? Hier mein Code:</p>
<pre>
#include <shlobj.h>
HRESULT CreateIt(LPCSTR pszShortCutFile, LPSTR pszLink, LPSTR pszDesc)
{
HRESULT hres;
IShellLink* psl;
hres=CoCreateInstance(
CLSID_ShellLink, <em>// REFCLSID rclsid</em>
NULL, <em>// LPUNKNOWN pUnkOuter</em>
CLSCTX_INPROC_SERVER, <em>// DWORD dwClsContext</em>
IID_IShellLink, <em>// REFIID riid</em>
&psl); <em>// LPVOID *ppv</em>
<em>// weiter bin ich noch nicht</em>
}
</pre>
<p>Wer kann mir helfen ? Danke - Günther </p>
<p> </p>
<p> </p>
</body>
</html>
Comment