Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
passing data to a form in another thread
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.