2

I come from a .net background and I am fairly new to developing in C++. I am well used to events in C# and raising events when something meaningful happens. What I'm not sure about it how to raise "an event" in C++ just when an event raised in C#.

I know how to create Managed COM from c# code and use in c++ code. Now I'm using a thread in c++ and check a variable that changes when c# trigger raised. but this solution is so bad...

How to make event x(C#) and event y(C++ MFC) peer to peer so that when event x raised, event y raising too?

4

1 回答 1

0

I Solved this challenge using "SendMessage" from C# to C++ or vice versa. see: https://www.codeproject.com/Articles/5307/Use-WM-COPYDATA-to-send-data-to-from-C-and-C-Windo

于 2019-12-02T06:22:04.253 回答