I have a function in non-managed C++ that runs for a long time - hours. I want to wrap that class in a C++/CLI wrapper class that is derived from a BackgroundWorker and then implement the functionality of the BackgroundWorker. I have created a simple example in C# showing the intent and functionality but not an actual solution.
If you look at the attached example I would like to:
a) Move the code in the [url removed, login to view] function to the Outline class.
b) Change the Outline class to non-managed, native C++.
c) Change the OutlineWrapper class to a C++/CLI class with the Outline class as a private member.
I would like to be able to update the status, watch for cancelation, and throw an exception from the DoWork function in the native C++ Outline class.
I really would prefer not keeping the loop (i=0; i<1000; i++) in the example in the OutlineWrapper class. This needs to be in the Outline class.
Looking for someone with good C++/CLI skills.
Working in .net 4.5 VS 2012 is fine.