Is it possible to use C++/CLI in PDB Whidbey build?

B

Bern McCarty

If you try to use the new C++/CLI syntax described at the PDC you get errors
such as:

HelloWorld.cpp(68) : error C3191: '^' : incompatible with /clr:blush:ldSyntax

These errors are documented in the whidbey documentation but they beg the
question, is it possible to use any of the new syntax at all in the PDC
build? I'm sure that many other folks are interested to know too. I tried
the obvious: -clr:newSyntax and -clrnewSyntax but no dice. The later string
actually does appear on a few of the .dlls I noticed.

Thanks in advance.

-Bern
 
C

Carl Daniel [VC++ MVP]

Bern said:
These errors are documented in the whidbey documentation but they beg
the question, is it possible to use any of the new syntax at all in
the PDC build?

No, it's not.

-cd
 
G

Gary Chang [MSFT]

Hi Bern,

Thanks for posting in the group!

To use the new C++ syntax they need to compile with /clr:newsyntax


Best regards,
Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
B

Bern McCarty

I tried that but I get "ignoring unknown option".

I am about to start doing quite a bit of stuff in managed extensions for C++
and when I saw the PDC slides on the new stuff I was elated. I was
desperately hoping to start writing C++/CLI rather than climb the MC++
learning curve only to abandon it after a few months and converting
everything.

The new stuff looks great. I sure hope that it is "on" in the first Whidbey
beta. Any reason to think that it wouldn't make the first beta?
 
R

Ronald Laeremans [MSFT]

Support for the new syntax will be partially there for the first Beta, it
should be fully there for the second beta.

Ronald Laeremans
Visual C++ team
 
B

Bruno van Dooren

is the slide shoiw online somewhere?
i would like to know more of the new managed code in C++.

I was thinking about learning MC++ after i finish with C#, but is it correct
that this will be a dead end?

kind regards,
Bruno.
 
T

Tomas Restrepo \(MVP\)

Hi Bruno,

is the slide shoiw online somewhere?

You can probably find good info here:
http://msdn.microsoft.com/visualc/whidbey/default.aspx
i would like to know more of the new managed code in C++.

I was thinking about learning MC++ after i finish with C#, but is it correct
that this will be a dead end?

Well, yes and no. Certainly the syntax is going to change, but the existing
syntax will continue to be supported in whydbey (just won't benefit from all
the new enhancements). However, the current compiler and language work and
can be used very effectively, and can be a wonderful way to learn and
understand better how the whole managed code world works because you're less
abstracted from the underlying platform (and in currrent MC++, you really
get to understand how the data and coding models differ in the managed from
the unmanaged world).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top