Mike
9/29/2003 7:00:00 PM
I'd like to call C++ from C#. I don't want to use COM becuase I want to be
able to call the C++ code from device-driver side fn's as well, and I need
to be able to target portable devices with the CF, so that leaves me with
PInvoke. Questions:
(1) Is there anything more than PInvoke available, so I don't need to write
wrappers to flatten the C++ object hierarchies into a bunch of extern "c"'s?
(For languages such as Python there are tools such as SWIG, Boost, PyInline,
CXX, Weave, etc., that help automate this process.)
(2) The C++ code creates several threads which it uses to do network i/o.
Will the CLR be okay with this? Is the message pump the best way to tell
managed code that a new event has occurred?
thanks,
mike