.NET AsyncCallback

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anybody know how to create a callbacl object in C++, every sample i've
saw over the net is a "new AsyncCallback(MethodPtr)" method and when i try to
compile thosed samples on my VS it says that AsyncCallback needs two
parameters, 1st one is a System::Object and 2nd One is a System::IntPtr so i
don't know what to do.
 
Does anybody know how to create a callbacl object in C++

new AsyncCallback(targetObject, &TargetClass::TargetMethod)

where targetObject is an instance of the TargetClass class, or 0 if
it's a static method.

every sample i've
saw over the net is a "new AsyncCallback(MethodPtr)"

That's the C# syntax.


Mattias
 
Back
Top