I am a "lucky" guy. My boss has told me to program in C++ in .NET.
I need to do this:
1. When I click on a button in my windows form, a separate managed thread must be created. This I have done and it works fine.
2. The new thread shall communicate with external devices over a CAN bus. Data received on the CAN bus must be passed back to windows form thread, so that it can be displayed in a textbox. This is what causes me problems.
Can anyone help me with a simple example of how to make a callback from a managed C++ thread to a managed C++ windows form thread?
any help will be much appreciated.