ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Intro to Managed C++, Part 2: Mixing Managed and Unmanaged Code
Subject:   c++ threads using .net libraries
Date:   2004-02-12 12:31:05
From:   lukedickens
At the moment I am having big problems trying to program threads in C++. I want to use the functionlity that .net offers me, but find when I call the threadstart constructor it tells me that I "cannot create a delegate handler...from a non-member function or a memeber of an unmanaged class". I've tried the pragma statements and _gc to prefic my class name but this diesn't work either.
Am I barking up the wrong tree or am I just missing one salient point?

Cheers for the helpful little site by the way.