Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2005

Tip: Looking for answers? Try searching our database.

including dshow.h compiles with /clr:oldSyntax but not /clr

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank Skare - 21 May 2005 15:44 GMT
Hello,

can somebody tell why I get 103 errors
with /clr and none with /clr:oldSyntax
when I include the dshow header file.
I would like to use the new syntax.

Win32 console app generated by VC Express
with line added to include dshow.h

#include "stdafx.h"
#include <dshow.h>

int _tmain(int argc, _TCHAR* argv[])
{
    return 0;
}

Regards,
stax
ismailp - 22 May 2005 21:24 GMT
No, you can't use new syntax until Platform SDK - Whidbey
incompatibility is solved.

Ismail
Kapil Khosla [MSFT] - 23 May 2005 21:03 GMT
> Hello,
>
[quoted text clipped - 16 lines]
> Regards,
> stax

Which edition are you using? If you are using Expess, the PSDK does not ship
with that version. You can download the latest version from
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E
-40C0EC4F68E5&displaylang=en


Thanks,
Kapil

Signature

Kapil Khosla, Visual C++ Team
This posting is provided AS IS with no warranties, and confers no rights

Jochen Kalmbach [MVP] - 23 May 2005 21:15 GMT
> Which edition are you using? If you are using Expess, the PSDK does not ship
> with that version. You can download the latest version from
> http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E
-40C0EC4F68E5&displaylang=en

And you should be aware of the fact that you can´t add the directiries
in the settings... :-)

So please look at the following thread:
http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2995

Signature

Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/

Carl Daniel [VC++ MVP] - 24 May 2005 01:44 GMT
>> Which edition are you using? If you are using Expess, the PSDK does not
>> ship with that version. You can download the latest version from
[quoted text clipped - 5 lines]
> So please look at the following thread:
> http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2995

Neither of which would be consistent with the OPs statement that it compiles
with /clr:oldSyntax but not with /clr (new syntax).

To the OP: you're running afoul of the fact that 'interface struct' is now a
"spaced keyword" in C++/CLI, while it's a #define in existing PSDK header
files (the PSDK is supposed to be fixed by the time VC 2005 goes to RTM, if
I recall correctly).

Find the point in the PSDK header files where

#define interface struct

appears and replace it with

#define interface intr
#define intr struct

or something equivalent (just prevent 'interface' and 'struct' from being
adjacent with only whitespace intervening).

-cd
Carl Daniel [VC++ MVP] - 24 May 2005 02:05 GMT
> #define interface intr
> #define intr struct

intr is way too short - amost guaranteed to clash with something.  How 'bout

#define interface_define struct
#define interface interface_define

-cd

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.