C++/CLI experiments

I

Ioannis Vranos

William said:
Yup. Seen 'em, read 'em.

As I see it the problem with C++ is that it sets the bar to entry way above
the skillsets of those who call themselves "developers" these days, some of
whom should be selling shoes. <BSEG>

C# IS THE mainstream .Net language.

C++/CLI WILL BE the .Net language used by the cognoscienti. We will continue
to be the minority.


Yes, C# will continue to be a minority, but don't get disappointed. I
think that some of the C++/CLI stuff will eventually make into C#, while
the most important thing, to create simple hello world applications in
..NET, will continue to be feasible with C#.






Best regards,

Ioannis Vranos
 
I

Ioannis Vranos

Hasani said:
Have you tried being more explicit in your declaration and see if that
works?

e.x.: System::String str = S"Hello World";

Not that what you have already shouldn't work.



No, you are wrong. But I will give you the compiler messages to understand:


int main()
{
using namespace System;

String s=S"Hello world";

Console::WriteLine(%s);
}



C:\c>cl /clr:safe temp.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.40809
for Microsoft (R) .NET Framework version 2.00.40607.16
Copyright (C) Microsoft Corporation. All rights reserved.

temp.cpp
temp.cpp(5) : error C3921: Use of S-prefixed strings requires
/clr:blush:ldSyntax command line option

When compiling with /clr, an implicit conversion exists from string
literal type to System::String^. If necessary to avoid ambiguity, cast
to System::String^

C:\c>






Best regards,

Ioannis Vranos
 
D

Don Kim

As I see it the problem with C++ is that it sets the bar to entry way
above the skillsets of those who call themselves "developers" these days,
some of whom should be selling shoes. <BSEG>

C# IS THE mainstream .Net language.

C++/CLI WILL BE the .Net language used by the cognoscienti. We will
continue to be the minority.

I think you are correct abou this, but I got to at least hand it to
Microsoft for realizing that C++ programers were important, and putting in
all the resources to get a much better C++ to CLI binding. Though initially
I thought they were going to try and push everyone to C#, like Sun tired
(and rather arrogantly so) to get everyone to go java.

Anyway, C++ was never the language for the masses, but Visual Basic was too
light as well. C# does occupy a good middle ground, though I would prefer a
language like Python for these kinds of tasks.

Still, I hope there are a lot of opportunities with C++/CLI because I happen
to really like it.

- Don Kim
 
I

Ioannis Vranos

Don said:
I think you are correct abou this, but I got to at least hand it to
Microsoft for realizing that C++ programers were important, and putting in
all the resources to get a much better C++ to CLI binding. Though initially
I thought they were going to try and push everyone to C#, like Sun tired
(and rather arrogantly so) to get everyone to go java.

Anyway, C++ was never the language for the masses,


I do not know if you know it, but C++ has been more widespread than VB,
Java and C# all these years.






Best regards,

Ioannis Vranos
 
W

William DePalo [MVP VC++]

Don Kim said:
Still, I hope there are a lot of opportunities with C++/CLI because I
happen to really like it.

Ditto to both sentiments. :)

Regards,
Will
 

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