Search code examples
c++multithreadingvisual-studio-2008wxwidgets

Where is wxThreadEvent defined?


I have downloaded wxWidgets 2.8.1 for Windows (MSW). The example in the reference for wxThread, shows the symbol wxThreadEvent. My compiler, Visual Studio 2008, says that the symbol is undefined.

The sample for threading doesn't use wxThreadEvent.

I searched the wxWidgets-2.8.1, in a Cygwin terminal, using: find /cygdrive/c/wxWidgets-2.8.1 -iname "*.h" -iname "*.[ch]pp" | xargs grep -n wxThreadEvent and no results were returned.

My question is, where is the symbol wxThreadEvent defined in the wxWidgets world?

Tools: Visual Studio 2008, Windows Vista, wxWidgets 2.8.1 for MSW.


Solution

  • The documentation shows that wxThreadEvent has been introduced in wxWidgets 2.9.0, so I suppose that's why you don't find it in 2.8.1.

    Unless you have a really, really good reason to use 2.8.1, I'd like to recommend moving to 3.0.2, which still supports VC++ 2008 pretty well, as far as I know.