pixal
January 4th, 2004, 07:37 PM
I've been looking at the sample code for creating threads from a managed class. The C++ examples always use static functions for the function called by start. Is there a requirement that static functions need to be used?
The problem is there are no examples showing passing data to the threads for c++. The examples for C# pass data using the constructor. The C++ samples don't use constructors for the class containing the thread.
I created a sample program that uses non-static functions and it seems to run ok, but it is a very simple program.
al
The problem is there are no examples showing passing data to the threads for c++. The examples for C# pass data using the constructor. The C++ samples don't use constructors for the class containing the thread.
I created a sample program that uses non-static functions and it seems to run ok, but it is a very simple program.
al