Passing a string through a BackgroundWorker's RunWorkerAsync
Posted on 2006-03-29
I have a Bacground Worker where it needs a string. I have put the string in the RunWorkerAsync function but when I try to cast the sender variable back to a string with the following line..
String args = dynamic_cast<String^>(sender);
arg is a String^, I get what I expect in the message box but when casting the 'args' value is null