473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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

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
Nov 17 '05 #1
5 2001
No, you can't use new syntax until Platform SDK - Whidbey
incompatibility is solved.

Ismail

Nov 17 '05 #2


"Frank Skare" wrote:
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


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/d...displaylang=en

Thanks,
Kapil

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

Nov 17 '05 #3
> 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/d...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/Sho...px?PostID=2995

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Nov 17 '05 #4

"Jochen Kalmbach [MVP]" <no********************@holzma.de> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
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/d...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/Sho...px?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
Nov 17 '05 #5
"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:OJ**************@TK2MSFTNGP15.phx.gbl...
#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
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bor_kev | last post by:
Hi! Now, I have to develop under Microsoft Visual Studio 2005 Beta, while I used to develop under Visual C++ .NET. That means I have to migrate all my former projects into this environment. The...
5
by: bor_kev | last post by:
Hi ! I tried everywhere in Microsoft Visual Studio 2005 Beta(MVS 2005 Beta) to put the option "/clr:oldSyntax" but I didn't find it. How can I add it please? Sincerely bor_kev
7
by: Gustavo L. Fabro | last post by:
Greetings! Some classes that once compiled without problems on VS 2003 have now problems on VS 2005 Beta 1. I'm talking about a __nogc class that is exported with __declspec(dllexport). The...
0
by: Mark Nudelman | last post by:
How can I run the xsd.exe tool on a .xsd file and have it generate a C++ header file which can be compiled with /clr:oldSyntax? I can't find anything in the documentation about this. However, I...
1
by: electrixnow | last post by:
Help!, I need to compile this code with static libs so it run on another XP machine that does'nt have MS Studio installed. When I compile now I get an ERROR: 1>------ Rebuild All started:...
3
by: Brian Richards | last post by:
I have a library that's a mixed mode dll and compiles fine in in VS2005 with /clr:oldSyntax. However, if I change it to /clr so I can use the newer syntax it won't compile because the header files...
8
by: Bern McCarty | last post by:
I have a simple ref class in its own namespace that needs to coexist with a legacy typedef alias for "unsigned int" in the global namespace that has the identifier as itself. Everything compiles...
4
by: Duncan Smith | last post by:
I have a VS2005 C++ MFC project which #imports a type library. The goal is to introduce some managed code eventually, but for starters I just need to set the /clr compiler option and build the...
10
by: SQACPP | last post by:
Hi, I try to figure out how to use Callback procedure in a C++ form project The following code *work* perfectly on a console project #include "Windows.h" BOOL CALLBACK...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.