Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2004

Tip: Looking for answers? Try searching our database.

Event in interface

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wernfried Schwenkner - 29 Mar 2004 13:06 GMT
I have the following problem while using events. The event is used in
two assemblies (remoting). Therfore I defined an interface assembly with
the event. One assembly is written in C# the otherone in managed C++.

Now, when I write the interface in C# I can't compile the C++-assembly,
getting an error that the signature of the event doesn't match with the
one declared in the C++-class.

Vice versa, writing the interface in in C++, I get a warning in the C#-
assembly, telling the same. While ignoring this warning all seems to
work perfectly. Can anyone point me what the reason to this behaviour
is? It seems for me, in C++ there will be generated three methodes (add,
remove and rise) for the __event-statement. In C# it works another way
and so the signature is another one.

Signature

Sleepless in Berlin
Wernfried

Ronald Laeremans [MSFT] - 29 Mar 2004 21:34 GMT
Can you use ildasm to look at the method signatures for the event methods to
see whether they differ between the C++ and C# versions?

Ronald Laeremans
Visual C++ team

> I have the following problem while using events. The event is used in
> two assemblies (remoting). Therfore I defined an interface assembly with
[quoted text clipped - 10 lines]
> remove and rise) for the __event-statement. In C# it works another way
> and so the signature is another one.
Wernfried Schwenkner - 30 Mar 2004 08:50 GMT
> Can you use ildasm to look at the method signatures for the event methods to
> see whether they differ between the C++ and C# versions?

Thanks for Your hint. Unfortunatly it will take a little time to check
this.

Signature

Sleepless in Berlin
Wernfried


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.