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

Managed C++/CLI

 
AnswerRe: Reading a Float from memory Pin
Graham Breach6-Feb-10 22:06
Graham Breach6-Feb-10 22:06 
GeneralRe: Reading a Float from memory Pin
Mattzimmerer7-Feb-10 10:39
Mattzimmerer7-Feb-10 10:39 
AnswerRe: Reading a Float from memory Pin
Luc Pattyn7-Feb-10 3:37
sitebuilderLuc Pattyn7-Feb-10 3:37 
GeneralRe: Reading a Float from memory Pin
dybs12-Feb-10 16:40
dybs12-Feb-10 16:40 
GeneralRe: Reading a Float from memory Pin
Luc Pattyn13-Feb-10 1:11
sitebuilderLuc Pattyn13-Feb-10 1:11 
QuestionCLS-compliance with C++/CLI Pin
Edward Diener5-Feb-10 18:07
Edward Diener5-Feb-10 18:07 
AnswerRe: CLS-compliance with C++/CLI Pin
N a v a n e e t h8-Feb-10 19:16
N a v a n e e t h8-Feb-10 19:16 
GeneralRe: CLS-compliance with C++/CLI Pin
Edward Diener9-Feb-10 7:21
Edward Diener9-Feb-10 7:21 
I do not believe that the C++ compilation model is any different from the C# compilation model in respect to checking for CLS-compliance. This is because CLS-compliance only refers to public CLR types and a CLR class's public/protected methods, properties, and events, not to the actual code being written. In this sense I do not see why CLS-compliance could not be enforced in C++/CLI.

I do realize that C++/CLI allows for non-CLR types to be mixed with CLR types. But if CLS-compliance is truly only about checking CLR types, then I really do not see what is the big deal for enforcing CLS-compliance in C++/CLI since what needs to be done is a matter of the C++/CLI compiler checking only the CLR types and not the actual code, which may be mixed mode C++/CLI programming.

Is not the C++/CLI compiler already able to distinguish what is a CLR type from a native C++ type in C++/CLI ? Obviously it can, in which case just checking that the signatures of those types are CLS-compliant should not be hard for the C++/CLI compiler.

It is just sheer laziness on the part of the C++/CLI programmers at Microsoft which keeps them from supporting the CLS-compliant attribute in C++/CLI. And of course without that support is is nearly impossible for C++/CLI to create CLR assemblies which are guaranteed to be CLS-compliant and therefore will be interoperable with other CLR languages.

I already know that Microsoft's support for C++/CLI is subpar. See my post at http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/bfe69a25-8973-4d41-8064-a7153dc1580b[^] for my own opinion. But if C++/CLI programmers simply acquiesce to Microsoft's nonsense about why they can not do anything about it, such as the reply I got to my bug report regarding CLS-compliance, it can not get any better.
Edward Diener

QuestionCalling as CreateServiceW() , when I call for CreateService() from C++/CLI Pin
Cherry_manju5-Feb-10 0:53
Cherry_manju5-Feb-10 0:53 
AnswerRe: Calling as CreateServiceW() , when I call for CreateService() from C++/CLI Pin
Richard MacCutchan5-Feb-10 1:02
mveRichard MacCutchan5-Feb-10 1:02 
GeneralRe: Calling as CreateServiceW() , when I call for CreateService() from C++/CLI Pin
Cherry_manju5-Feb-10 1:57
Cherry_manju5-Feb-10 1:57 
GeneralRe: Calling as CreateServiceW() , when I call for CreateService() from C++/CLI Pin
Richard MacCutchan5-Feb-10 2:19
mveRichard MacCutchan5-Feb-10 2:19 
QuestionC++ Stack Semantics for Reference Types oddity Pin
Edward Diener4-Feb-10 7:36
Edward Diener4-Feb-10 7:36 
AnswerMessage Closed Pin
10-Mar-10 14:13
_beauw_10-Mar-10 14:13 
GeneralRe: C++ Stack Semantics for Reference Types oddity Pin
Edward Diener11-Mar-10 4:50
Edward Diener11-Mar-10 4:50 
QuestionSimple question on String to double Pin
Andreoli Carlo4-Feb-10 3:02
professionalAndreoli Carlo4-Feb-10 3:02 
AnswerRe: Simple question on String to double Pin
Richard MacCutchan4-Feb-10 3:10
mveRichard MacCutchan4-Feb-10 3:10 
GeneralRe: Simple question on String to double Pin
Andreoli Carlo4-Feb-10 3:46
professionalAndreoli Carlo4-Feb-10 3:46 
GeneralRe: Simple question on String to double Pin
Richard MacCutchan4-Feb-10 4:21
mveRichard MacCutchan4-Feb-10 4:21 
GeneralRe: Simple question on String to double Pin
Andreoli Carlo5-Feb-10 0:22
professionalAndreoli Carlo5-Feb-10 0:22 
AnswerRe: Simple question on String to double Pin
Luc Pattyn4-Feb-10 3:31
sitebuilderLuc Pattyn4-Feb-10 3:31 
AnswerRe: Simple question on String to double Pin
zhushaolin20054-Feb-10 14:56
zhushaolin20054-Feb-10 14:56 
GeneralRe: Simple question on String to double Pin
Richard MacCutchan4-Feb-10 22:19
mveRichard MacCutchan4-Feb-10 22:19 
QuestionCopyFile method and String conversions Pin
paul903825-Jan-10 4:11
paul903825-Jan-10 4:11 
AnswerRe: CopyFile method and String conversions Pin
Covean25-Jan-10 5:13
Covean25-Jan-10 5:13 

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.