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

Managed C++/CLI

 
GeneralRe: C# send structure objects through socket Pin
Mark Salsbery18-Dec-09 9:29
Mark Salsbery18-Dec-09 9:29 
GeneralRe: C# send structure objects through socket Pin
ikurtz18-Dec-09 9:42
ikurtz18-Dec-09 9:42 
AnswerRe: C# send structure objects through socket Pin
N a v a n e e t h18-Dec-09 15:38
N a v a n e e t h18-Dec-09 15:38 
QuestionIssue Reading and Writing to Serial Port Pin
BubbaGeeNH17-Dec-09 5:38
BubbaGeeNH17-Dec-09 5:38 
AnswerRe: Issue Reading and Writing to Serial Port Pin
Rick Shaub18-Dec-09 9:05
Rick Shaub18-Dec-09 9:05 
GeneralRe: Issue Reading and Writing to Serial Port Pin
BubbaGeeNH22-Dec-09 3:59
BubbaGeeNH22-Dec-09 3:59 
GeneralRe: Issue Reading and Writing to Serial Port Pin
Luc Pattyn22-Dec-09 6:38
sitebuilderLuc Pattyn22-Dec-09 6:38 
QuestionExtension Methods feature over mixed solution (managed c++ to C#) [solved] Pin
Martin#17-Dec-09 2:12
Martin#17-Dec-09 2:12 
Hello everyone.

I'm doing some research about the extension methods[^]!

I was very critical as I heard about that feature and after some research my doubt, if there is a need for it, is even higher. (But that was discussed so often now, I will not waste your time and leave it open ...)

Now my question (proplem)!
I did a test, with a solution including:
1) C# project "Provider", which contains a class Foo and a parameterless method DoFoo (all public)
2) C# project "Extensions"(which references "Provider"), containing the extension method
public static void DoFoo(this Foo fo, int inValue) { ...}

3 a) C# project "UserCs" (which reference "Provider and "User")
3 b) managed C++ project "UserCpp" (which reference "Provider and "User")

Also another test, with a solution including:
1) managed C++ project "Provider", ...
2) C# project "Extensions"(which references "Provider"), ...
3 a) C# project "UserCs" (which reference "Provider and "User")
3 b) managed C++ project "UserCpp" (which reference "Provider and "User")

What happens in both tests now is, that in "3a" I have access to the extensions Method but not in "3b".

I know that managed c++ does not provide the syntactic features (ofter heard as "syntactic sugar"), but is aware of the attribute "ExtensionAttribute", which in fact is the base technology of the extention methods.

So for me, it seems that the managed c++ compiler can not deal with the build in C# feature, where the extension method is "turned" into a static method which is placed in a static class, all "surrounded" by the "ExtensionAttribute".

I know that I'm lacking at the basic knowledge in manage c++, so I'm really looking forwared reading some expert statement pointing out the parts I have missed so far!

All the best,

Martin

modified on Wednesday, January 13, 2010 6:57 AM

AnswerRe: Extension Methods feature over mixed solution (managed c++ to C#) Pin
N a v a n e e t h17-Dec-09 16:56
N a v a n e e t h17-Dec-09 16:56 
GeneralRe: Extension Methods feature over mixed solution (managed c++ to C#) Pin
Martin#17-Dec-09 19:36
Martin#17-Dec-09 19:36 
GeneralRe: Extension Methods feature over mixed solution (managed c++ to C#) Pin
N a v a n e e t h17-Dec-09 20:51
N a v a n e e t h17-Dec-09 20:51 
GeneralRe: Extension Methods feature over mixed solution (managed c++ to C#) Pin
Martin#17-Dec-09 21:26
Martin#17-Dec-09 21:26 
GeneralRe: Extension Methods feature over mixed solution (managed c++ to C#) Pin
tonyt24-Jan-10 15:09
tonyt24-Jan-10 15:09 
GeneralRe: Extension Methods feature over mixed solution (managed c++ to C#) Pin
Martin#24-Jan-10 22:42
Martin#24-Jan-10 22:42 
Question“An unhandled exception of type 'System.IO.FileLoadException' occurred in Pin
vibindia16-Dec-09 15:21
vibindia16-Dec-09 15:21 
Questionmanaged c++ app refuses to run Pin
Jason Henderson16-Dec-09 8:10
Jason Henderson16-Dec-09 8:10 
AnswerRe: managed c++ app refuses to run Pin
N a v a n e e t h16-Dec-09 14:47
N a v a n e e t h16-Dec-09 14:47 
GeneralRe: managed c++ app refuses to run Pin
Jason Henderson17-Dec-09 2:52
Jason Henderson17-Dec-09 2:52 
AnswerRe: managed c++ app refuses to run Pin
teejayem17-Dec-09 4:43
teejayem17-Dec-09 4:43 
GeneralRe: managed c++ app refuses to run Pin
Jason Henderson17-Dec-09 4:59
Jason Henderson17-Dec-09 4:59 
GeneralRe: managed c++ app refuses to run Pin
YoavStein7-Feb-10 2:57
YoavStein7-Feb-10 2:57 
QuestionHow to send messages from pc to pc in LAN without turning 'Messenger' service on? Pin
Nilesh Hamane14-Dec-09 0:48
Nilesh Hamane14-Dec-09 0:48 
AnswerRe: How to send messages from pc to pc in LAN without turning 'Messenger' service on? Pin
Andreoli Carlo14-Dec-09 3:16
professionalAndreoli Carlo14-Dec-09 3:16 
AnswerRe: How to send messages from pc to pc in LAN without turning 'Messenger' service on? Pin
Richard MacCutchan16-Dec-09 9:08
mveRichard MacCutchan16-Dec-09 9:08 
GeneralRe: How to send messages from pc to pc in LAN without turning 'Messenger' service on? Pin
Nilesh Hamane16-Dec-09 22:07
Nilesh Hamane16-Dec-09 22:07 

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.