Board index » cppbuilder » Re: C++\CLI compiler

Re: C++\CLI compiler


2007-09-11 11:06:42 PM
cppbuilder11
Daniel James wrote:
Quote
However, the message that seems to be coming across from the
Visual Studio team ...
is that they think that most people who are consciously targeting
.NET will choose to use C#, and that the future of C++ lies with
native code applications and with "glue" code connecting the .NET
world to the native world.
Well, this new viewpoint is an accurate reflection of my personal
experience. The only time I have used managed C++ was to wrap a plain C
library (graphviz) so I could call it from a C# app. Even though
microsoft cleaned up managed C++ in .net 2.0, it is still a messy beast.
Certainly not as clean as C# or native C++. So, I only use it when I
have no other legitimate choice.
I am glad that managed C++ exists, but it is never going to be the first
tool that I pull out of the toolbox.
Quote
Microsoft is in a tricky position: it has an easy-to-use RAD language
(C#) that can't access native code without help
Note that C# can call plain C dlls and COM libraries without any special
help.
H^2
 
 

Re:Re: C++\CLI compiler

geikelite wrote:
Quote
"Mike Margerum" < XXXX@XXXXX.COM >wrote
>>There is no native version. The VCL exists natively and on .NET as
>>well. And on .NET, it still beats Windows Forms hands down, in many
>>respects.
>Windows forms is already legacy code.

I have heard that before, but I don't recall the details. Do you know of a
link where this is discussed?
Winforms is legacy only because they are pushing something newer called
Windows Presentation Foundation. WPF is too young to adopt at this
point. Designer support is lacking, and I'm not sure I want huge parts
of my application coded in xml. Compile time type checking is a good thing.
If you must use microsoft technologies to create a client application,
windows forms is the easily best library to choose. Your other choices are
- WPF (not ready for primetime)
- MFC (a shining example of everything you shouldn't do)
- WTL (little known C++ library that I don't think is supported)
- VB6 (you too can be an average developer)
- straight win32 (its 1992 all over again)
Windows forms is a lot like the VCL. Say what you want about microsoft,
but one thing they have mastered is the art of stealing good ideas.
H^2
 

Re:Re: C++\CLI compiler

Quote
- WTL (little known C++ library that I don't think is supported)
It's still supported. 8.0 just came out. It's pretty good. Not VCL
good though.
 

{smallsort}

Re:Re: C++\CLI compiler

Hendrik Schober wrote:
Quote
Andre Kaufmann < XXXX@XXXXX.COM >wrote:
[...]

So you're not one of MS' customers. What does this
I'm both Borland and MS customer, but not yet a Codegear customer.
Quote
change to the thousends who shout for new MFC stuff
and hail SM for delivering this?
Don't know if there are many, which hail for new MFC stuff. I've done a
pretty large project in MFC, before I knew other RAD frameworks. You can
develop with it, but IMHO VCL and the other RAD frameworks are more
straightforward.
Quote
>[...]
>>of new /native/ APIs in Vista(?) and IIRC it was a 5-digit
>>number.
>Some native API's, which they need anyway to be accessible from user
>code, compared to all the new stuff for .NET ?

Who cares? They are there and usable, and they are
The point is they are usable too from .NET. The other way round is also
possible, but it's a pain in the a...
Quote
aggressively announced to assure MS customers that
native code isn't dead. I suppose if MS still wanted
everybody to switch to .NET ASAP, they wouldn't do
this.
IIRC the number of new native API functions in Vista has been mentioned
because a customer has raised a question what Vista has to offer for
native development, besides all that many new managed API's.
Quote
[...]
>The VC++ team, the VB team is another story.

Just as with BCB and Delphi. Neither MS nor Borland
dared to do this to their biggest chunk of customers.
Don't know if the VB customer base was small compared to the C++
customer base. Many stated just the opposite.
But you mentioned the main reason why C++ compatibility isn't touched
(besides that C++ is an ISO standard) - Windows itself is written in
C/C++ ;-).
Quote
>Andre
Schobi
Andre
 

Re:Re: C++\CLI compiler

"Leo Siefert" < XXXX@XXXXX.COM >wrote
Quote
Tim Del Chiaro wrote:

>No plans at this point. Not to say it would never happen
>but it's not currently on our roadmap.

How about an interface to VCL/.NET? I don't remember seeing that on
the roadmap either, but it seems like that might be more manageable.
Any plans at all for that?

It would be nice to get an answer on this from CodeGear. It would help C++
folks who are interested in .NET to plan.
I'm showing below a quote from Steve Teixeira on the MS VC++ team that has
bearing on this thread. It is taken from a comment (Sept. 07) from the
following msdn blog by Somasegar on August 08:
blogs.msdn.com/somasegar/archive/2007/08/08/visual-c-futures.aspx
Here is the comment from Steve Teixeira. Some straightforward talk, slightly
out of context.
"The recommendation we're making here is that if you're going to make a
technology decision to build a user interface using one of the managed UI
frameworks, you need to invest in building C# and/or VB.NET expertise on
your development staff. I've yet to talk to a customer for whom this is a
serious problem, but I admit I haven't talked personally to all of them. :)
The bigger picture here is that leaving this space in the capable hands of
C# and VB.NET gives us the ability organizationally to focus on the native
UI space (which I fully admit we haven't done a good job at in recent
versions). I fully expect that we're going to take some heat for stating our
intentions and recommendations in this space so bluntly, but I believe it's
the right thing to do because it enables customers to plan their technology
investments accordingly ."
 

Re:Re: C++\CLI compiler

Frank J wrote:
Quote
I'm implying that the VCL Framework is slower than MFC.

Based on what?
Quote
"How can the VCL benefit from the new processor architecture like .NET
can"?


How can it? It's up to an individual developer to write MT code, when
warranted.
 

Re:Re: C++\CLI compiler

"Alex Bakaev [TeamB]" < XXXX@XXXXX.COM >wrote in message
Quote
Frank J wrote:
>I'm implying that the VCL Framework is slower than MFC.
>

Based on what?

Based on my own testing.
VCL is more productive, but it runs slower.
There is always that scale of productivity...production vs. performance.
 

Re:Re: C++\CLI compiler

Frank J wrote:
Quote
VCL is more productive, but it runs slower.
I have never experienced any slowness in the VCL.
--
Rudy Velthuis [TeamB]
"DOS Computers manufactured by companies such as IBM, Compaq,
Tandy, and millions of others are by far the most popular, with
about 70 million machines in use worldwide. Macintosh fans, on
the other hand, may note that{*word*19}roaches are far more numerous
than humans, and that numbers alone do not denote a higher life
form." -- New York Times, November 26, 1991
 

Re:Re: C++\CLI compiler

"Frank J" < XXXX@XXXXX.COM >wrote in message>
Quote
"Alex Bakaev [TeamB]" < XXXX@XXXXX.COM >wrote in message
>Frank J wrote:
>>I'm implying that the VCL Framework is slower than MFC.
>>
>
>Based on what?
>
Based on my own testing.
VCL is more productive, but it runs slower.
There is always that scale of productivity...production vs. performance.

It would be interesting to see your results. I don't use VCL day-in/day-out,
but one thing that has always seemed real good about the VCL was it's
windowing performance with even very complicated forms. It seems to be very
'optimized'.
Perhaps you were testing a specific feature that isn't?
The only thing that bugs me performance-wise is this very {*word*193} flicker I
get on my iMac when resizing tab pages.
 

Re:Re: C++\CLI compiler

"Rudy Velthuis [TeamB]" < XXXX@XXXXX.COM >wrote in message
Quote

>VCL is more productive, but it runs slower.

I have never experienced any slowness in the VCL.
ok Rudy, I'm no longer going to play these little word games with you any
longer.
You know I'm saying in comparison to MFC...but I done dealing with you.
 

Re:Re: C++\CLI compiler

"Harold Howe [TeamB]" < XXXX@XXXXX.COM >wrote in message
Quote
Note that C# can call plain C dlls and COM libraries without any special
help.
But plain C++ has a more diffucult time calling a C# dll, unless you use
COM.
But, this is where C++/CLI helps out greatly.
 

Re:Re: C++\CLI compiler

Frank J wrote:
Quote
Based on my own testing.
VCL is more productive, but it runs slower.
There is always that scale of productivity...production vs. performance.

Did you find that your apps are UI-bound? Could you describe what the
test parameters were? I'm curious how does one derive a test for a UI
framework?
thanks,
.a
 

Re:Re: C++\CLI compiler

"Alex Bakaev [TeamB]" < XXXX@XXXXX.COM >wrote in message
Quote
Frank J wrote:

>Based on my own testing.
>VCL is more productive, but it runs slower.
>There is always that scale of productivity...production vs. performance.
>

Did you find that your apps are UI-bound? Could you describe what the test
parameters were? I'm curious how does one derive a test for a UI
framework?

I would assume it's the same test that most of you are using to determine
.NET is slower than the VCL.
 

Re:Re: C++\CLI compiler

Alex Bakaev [TeamB] wrote:
Quote
Frank J wrote:

>Based on my own testing.
>VCL is more productive, but it runs slower.
>There is always that scale of productivity...production vs.
>performance.
>

Did you find that your apps are UI-bound? Could you describe what the
test parameters were? I'm curious how does one derive a test for a UI
framework?

Isn't it a long time since VCL was only a UI framework ?
TThread, TDataset, AnsiString etc.
--
frode
 

Re:Re: C++\CLI compiler

Harold Howe [TeamB] < XXXX@XXXXX.COM >wrote:
Quote
>>Surely you are aware, Hendrik, that win32 is going away. Eventually, it
>>will be a layer on top of .NET, and they won't add any new features to
>>it. I think this is happening in vista.
>>
>>At least, that was the plan in 2004. I doubt it has changed...
>
>I think it has....

Apparently, I'm not very effective at using sarcasm. [...]
I am very sorry for not having understood. this.
(My only excuse is that you fooled others, too.)
Quote
H^2
Schobi
--
XXXX@XXXXX.COM is never read
I'm HSchober at gmx dot de
"A patched buffer overflow doesn't mean that there's one less way attackers
can get into your system; it means that your design process was so lousy
that it permitted buffer overflows, and there are probably thousands more
lurking in your code."
Bruce Schneier