Click here to Skip to main content
15,898,035 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Use native C++-DLLs with managed C++ or C#? Pin
Unbe Kant23-May-09 8:09
Unbe Kant23-May-09 8:09 
AnswerRe: Use native C++-DLLs with managed C++ or C#? Pin
Luc Pattyn23-May-09 6:17
sitebuilderLuc Pattyn23-May-09 6:17 
GeneralRe: Use native C++-DLLs with managed C++ or C#? Pin
Unbe Kant23-May-09 8:24
Unbe Kant23-May-09 8:24 
GeneralRe: Use native C++-DLLs with managed C++ or C#? Pin
Luc Pattyn23-May-09 8:57
sitebuilderLuc Pattyn23-May-09 8:57 
GeneralRe: Use native C++-DLLs with managed C++ or C#? Pin
Unbe Kant23-May-09 12:07
Unbe Kant23-May-09 12:07 
GeneralRe: Use native C++-DLLs with managed C++ or C#? Pin
Luc Pattyn23-May-09 12:35
sitebuilderLuc Pattyn23-May-09 12:35 
GeneralRe: Use native C++-DLLs with managed C++ or C#? Pin
Unbe Kant23-May-09 13:22
Unbe Kant23-May-09 13:22 
GeneralRe: Use native C++-DLLs with managed C++ or C#? Pin
led mike27-May-09 5:01
led mike27-May-09 5:01 
Luc Pattyn wrote:
IMO the rumors of C++/CLI being much better at interop than C# are highly overrated.


Luc, I hope you won't mind if I defer to these fellows facts as opposed to your opinion? Wink | ;)


While there is no question that the Microsoft® .NET Framework improves developer productivity, many people have some concern regarding the performance of managed code. The new version of Visual C++® will allow you to set aside these fears. For Visual Studio® 2005, the C++ syntax itself has been greatly improved to make it faster to write. In addition, a flexible language framework is provided for interacting with the common language runtime (CLR) to write high-performance programs.
Many programmers think that C++ gets good performance because it generates native code, but even if your code is completely managed you'll still get superior performance. With its flexible programming model, C++ doesn't tie you to procedural programming, object-oriented programming, generative programming, or meta-programming.

Another common misconception is that the same kind of superior performance on the .NET Framework can be attained regardless of the language you use—that the generated Microsoft intermediate language (MSIL) from various compilers is inherently equal. Even in Visual Studio .NET 2003 this was not true, but in Visual Studio 2005, the C++ compiler team went to great lengths to make sure that all of the expertise gained from years of optimizing native code was applied to managed code optimization. C++ gives you the flexibility to do fine tuning such as high-performance marshaling that is not possible with other languages. Moreover, the Visual C++ compiler generates the best optimized MSIL of any of the .NET languages. The result is that the best optimized code in .NET comes from the Visual C++ compiler.


http://msdn.microsoft.com/en-us/magazine/cc163855.aspx[^][^]

Wait Luc, there's more


Summary: Explore the design and rationale for the new C++/CLI language introduced with Visual C++ 2005. Use this knowledge to write powerful .NET applications with the most powerful programming language for .NET programming.


C++: The Most Powerful Language for .NET Framework Programming[^]

MORE!!!


Some people think that Microsoft forgets C++ playing with C#, but C++ is still widely used language. Could you comment it?

Microsoft has absolutely *not* forgotten C++. Most shrink-wrap applications are C++ because it's the smallest, tightest way to build apps and requires the least support from the OS itself. There is tons of existing C++ code in the world and Microsoft has implemented pure magic in the managed extensions for C++. MC++ allows you to flip a compiler switch, recompile your C++ code and begin producing and consuming .NET types immediately, all without changing your unmanaged types. In addition, the MC++ IJW (It Just Works) technology provides the lowest overhead interop layer between managed and unmanaged code, making it the best way to bridge the gap between the two technologies. Also, VS.NET 2003 provides a C++ compiler that compiles unmanaged C++ code down to smaller and faster code than ever before, while increasing ANSI C++ compliance to the highest level of any C++ compiler that I know of. I can't say enough good things about Microsoft's continued support for C++. I don't know of anyone doing more.


Interview with Chris Sells[^]
GeneralRe: Use native C++-DLLs with managed C++ or C#? Pin
Luc Pattyn27-May-09 5:50
sitebuilderLuc Pattyn27-May-09 5:50 
GeneralRe: Use native C++-DLLs with managed C++ or C#? Pin
N a v a n e e t h27-May-09 17:22
N a v a n e e t h27-May-09 17:22 
QuestionResizing of Labels in Controls Pin
cherrymotion21-May-09 21:23
cherrymotion21-May-09 21:23 
AnswerRe: Resizing of Labels in Controls Pin
N a v a n e e t h21-May-09 21:54
N a v a n e e t h21-May-09 21:54 
GeneralRe: Resizing of Labels in Controls Pin
cherrymotion21-May-09 22:16
cherrymotion21-May-09 22:16 
QuestionRe: Resizing of Labels in Controls Pin
led mike22-May-09 4:26
led mike22-May-09 4:26 
AnswerRe: Resizing of Labels in Controls Pin
cherrymotion22-May-09 8:25
cherrymotion22-May-09 8:25 
GeneralRe: Resizing of Labels in Controls [modified] Pin
Luc Pattyn22-May-09 9:40
sitebuilderLuc Pattyn22-May-09 9:40 
QuestionSending events to main window of another process Pin
parth_patel21-May-09 5:34
parth_patel21-May-09 5:34 
QuestionRe: Sending events to main window of another process Pin
led mike21-May-09 5:48
led mike21-May-09 5:48 
AnswerRe: Sending events to main window of another process Pin
parth_patel21-May-09 6:05
parth_patel21-May-09 6:05 
GeneralRe: Sending events to main window of another process Pin
led mike21-May-09 7:50
led mike21-May-09 7:50 
GeneralRe: Sending events to main window of another process Pin
parth_patel21-May-09 10:58
parth_patel21-May-09 10:58 
GeneralRe: Sending events to main window of another process Pin
parth_patel27-May-09 9:23
parth_patel27-May-09 9:23 
AnswerRe: Sending events to main window of another process Pin
Mark Salsbery21-May-09 7:23
Mark Salsbery21-May-09 7:23 
GeneralRe: Sending events to main window of another process Pin
led mike21-May-09 7:50
led mike21-May-09 7:50 
QuestionProblem getting exact response through webrequest Pin
naveen_bij18-May-09 21:54
naveen_bij18-May-09 21:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.