Q&A
Q1: | What's the difference between events in managed code and events in native C++ code? |
A1: | The only difference you have to worry about is changing the event_source parameter from managed to native. The rest is handled internally within the injected source code. |
Q2: | Can I create an event receiver in C# that handles events fired from a C++ event source? |
A2: | As long as the event source is created using managed C++, you can. You should, however, ensure that any event parameters use .NET data types rather than regular C++ data types, as was used this hour. |
Get Sams Teach Yourself Visual C++® .NET in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.