1 Reply Latest reply on Apr 18, 2020 1:40 AM by YatheeshK_36

    Use C++ code in C# code

    WGT_4383351

      How to add C++ data xfer into existing C# code?

      For example, existing C# code is:

       

      outEndpoint.XferData(ref buf, ref len, true);

       

      But use C# to load/process data before sending them is slow.

       

      What is needed is a C++ method to be called through P/Invoke to do the data load and send job.

       

      The problem is how to get the C++ CCyUSBEndPoint corresponding to the C# outEndpoint? What handle to pass to the C++ P/invoke method?

       

      The C++ examples looks strange, are they C++/CLI code?