Backgroundworker issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Airslash
    New Member
    • Nov 2007
    • 221

    #1

    Backgroundworker issue

    Hello,

    I'm working in Visual C++ on .NET and trying to implement a bckgroundworker to write files to the harddisk. It's sort of a performance test.

    The problem I currently have is calling the Invoke() methods on my Listbox items to insert text into them from the backgroundthrea d.

    I've tried various ways to get it done, but I'm still stuck, everytime getting a different error message.

    Right now I have the following code:
    Code:
    mLogger->Invoke(mLogger->Items->Add, "Background thread started.");
    I'm a bit clueless what the correct call is to inserting text in my listbox.
Working...