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

Managed C++/CLI

 
GeneralRe: C++/CLI operators in ref classes and interface classes Pin
Edward Diener28-Feb-10 14:24
Edward Diener28-Feb-10 14:24 
GeneralRe: C++/CLI operators in ref classes and interface classes Pin
Nish Nishant28-Feb-10 16:23
sitebuilderNish Nishant28-Feb-10 16:23 
GeneralRe: C++/CLI operators in ref classes and interface classes Pin
N a v a n e e t h1-Mar-10 23:18
N a v a n e e t h1-Mar-10 23:18 
GeneralRe: C++/CLI operators in ref classes and interface classes Pin
N a v a n e e t h1-Mar-10 23:19
N a v a n e e t h1-Mar-10 23:19 
GeneralRe: C++/CLI operators in ref classes and interface classes Pin
Edward Diener2-Mar-10 2:31
Edward Diener2-Mar-10 2:31 
GeneralRe: C++/CLI operators in ref classes and interface classes Pin
N a v a n e e t h2-Mar-10 5:06
N a v a n e e t h2-Mar-10 5:06 
GeneralRe: C++/CLI operators in ref classes and interface classes Pin
Edward Diener2-Mar-10 5:44
Edward Diener2-Mar-10 5:44 
GeneralRe: C++/CLI operators in ref classes and interface classes Pin
N a v a n e e t h2-Mar-10 6:57
N a v a n e e t h2-Mar-10 6:57 
Edward Diener wrote:
If static methods are not accesible through instance variables why do static operators work for class instances ?


That is a syntactic sugar. When compiler sees expression int result = first * second where first and second are instance variables of type Foo, it checks that operator overload is available and if it is available, this expression will be rewritten like int result = Foo.op_Multiply(first, second).

If you are interested why operator overloads are static, take a look at what Eric Lippert says[^].

Edward Diener wrote:
Try it in C++/CLI and you will see that they do work as advertised.


What do you mean by that?

Edward Diener wrote:
Somehow I think you are talking about C++/CLI as if it is just native C++


No. I know the difference quite well.

Smile | :)
Best wishes,
Navaneeth

GeneralRe: C++/CLI operators in ref classes and interface classes Pin
Edward Diener2-Mar-10 8:51
Edward Diener2-Mar-10 8:51 
QuestionRetrieving a control's information Pin
Jayapal Chandran23-Feb-10 23:29
Jayapal Chandran23-Feb-10 23:29 
AnswerRe: Retrieving a control's information Pin
Richard MacCutchan24-Feb-10 1:37
mveRichard MacCutchan24-Feb-10 1:37 
GeneralRe: Retrieving a control's information Pin
Ron Aldrich4-Mar-10 10:08
Ron Aldrich4-Mar-10 10:08 
GeneralRe: Retrieving a control's information Pin
Richard MacCutchan4-Mar-10 21:13
mveRichard MacCutchan4-Mar-10 21:13 
QuestionManaged Extensions in VS2008 ? Pin
gvanto23-Feb-10 12:23
gvanto23-Feb-10 12:23 
AnswerRe: Managed Extensions in VS2008 ? Pin
Richard Andrew x6423-Feb-10 14:51
professionalRichard Andrew x6423-Feb-10 14:51 
GeneralRe: Managed Extensions in VS2008 ? Pin
gvanto23-Feb-10 18:50
gvanto23-Feb-10 18:50 
GeneralRe: Managed Extensions in VS2008 ? Pin
Richard Andrew x6424-Feb-10 2:25
professionalRichard Andrew x6424-Feb-10 2:25 
GeneralRe: Managed Extensions in VS2008 ? Pin
gvanto24-Feb-10 13:54
gvanto24-Feb-10 13:54 
QuestionSending values to WPF control from VC++ Pin
Anu_Bala14-Feb-10 22:00
Anu_Bala14-Feb-10 22:00 
Questionusing microsoft enterprise library in .net dll to be called from COM application Pin
chana gibber10-Feb-10 5:02
chana gibber10-Feb-10 5:02 
AnswerRe: using microsoft enterprise library in .net dll to be called from COM application Pin
N a v a n e e t h10-Feb-10 5:18
N a v a n e e t h10-Feb-10 5:18 
GeneralRe: using microsoft enterprise library in .net dll to be called from COM application Pin
chana gibber10-Feb-10 5:22
chana gibber10-Feb-10 5:22 
GeneralRe: using microsoft enterprise library in .net dll to be called from COM application Pin
N a v a n e e t h10-Feb-10 5:28
N a v a n e e t h10-Feb-10 5:28 
GeneralRe: using microsoft enterprise library in .net dll to be called from COM application Pin
chana gibber10-Feb-10 5:30
chana gibber10-Feb-10 5:30 
GeneralRe: using microsoft enterprise library in .net dll to be called from COM application Pin
chana gibber10-Feb-10 6:26
chana gibber10-Feb-10 6:26 

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.