Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: SHCOLSTATE_TYPE_STR redefinition when converting WMFSDK class into MFC .DLL

HTVi
TV Discussion Newsgroups

SHCOLSTATE_TYPE_STR redefinition when converting WMFSDK class into MFC .DLL
dl0 <dl0banter[ at ]gmail.com> 6/8/2007 8:39:57 PM
I'm getting some inclusion problems when attemping to include a class
from the WMFSDK into a new project. The old project was a console
app, the new one an MFC .DLL.

Error 1 error C2365: 'SHCOLSTATE_TYPE_STR' : redefinition; previous
definition was 'enumerator' c:\program files\microsoft visual studio
8\vc\platformsdk\include\shobjidl.h 1948


this happens a bunch then I get one warning about a macro
redefinition....

Not sure what's going on here since I didn't pull anything application-
specific as far as I can tell. Perhaps something to do with stdio.h
or tchar.h?

What's going on here? The only thing I copied over was the class and
header file. I've looked through the project configuration and found
differences but nothing really helped here. Its like its pulling a
different version of shobjidl.h or something?

Re: SHCOLSTATE_TYPE_STR redefinition when converting WMFSDK class into MFC .DLL
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 6/8/2007 8:50:09 PM
From: "dl0"

[Quoted Text]
> What's going on here? The only thing I copied over was
> the class and header file. I've looked through the
> project configuration and found differences but nothing
> really helped here. Its like its pulling a different
> version of shobjidl.h or something?

I think WMF SDK 11 only works with the P/WSDK for Vista
while you are using the PSDK that comes with VC8 which is
way older. Either use the WMF SDK 9.5 (nothing much changed
anyway) or upgrade your P/WSDK to the Vista version (Vista
as in "up to Vista", not "Vista only").



--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: SHCOLSTATE_TYPE_STR redefinition when converting WMFSDK class into MFC .DLL
dl0 <dl0banter[ at ]gmail.com> 6/10/2007 1:56:27 AM
On Jun 8, 2:50 pm, "Alessandro Angeli" <nob...[ at ]nowhere.in.the.net>
wrote:
[Quoted Text]
> From: "dl0"
>
> > What's going on here? The only thing I copied over was
> > the class and header file. I've looked through the
> > project configuration and found differences but nothing
> > really helped here. Its like its pulling a different
> > version of shobjidl.h or something?
>
> I think WMF SDK 11 only works with the P/WSDK for Vista
> while you are using the PSDK that comes with VC8 which is
> way older. Either use the WMF SDK 9.5 (nothing much changed
> anyway) or upgrade your P/WSDK to the Vista version (Vista
> as in "up to Vista", not "Vista only").
>
> --
> // Alessandro Angeli
> // MVP :: DirectShow / MediaFoundation
> // mvpnews at riseoftheants dot com
> //http://www.riseoftheants.com/mmx/faq.htm

Thanks... installing 95 worked great.

Thanks,
D

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen