C# wrapper and Callbacks

前端 未结 1 691
隐瞒了意图╮
隐瞒了意图╮ 2021-01-18 20:46

I\'m in the process of writing a C# wrapper for Dallmeier Common API light (Camera & Surviellance systems) and I\'ve never written a wrapper before, but I have used the

相关标签:
1条回答
  • 2021-01-18 21:12

    You're mostly on the right track.

    However, C longs are (I believe) 32-bit, and map to C# ints.
    Also, after calling the function, you must keep a managed reference to the delegate instance that you passed to make sure that the delegate doesn't get garbage collected.

    0 讨论(0)
提交回复
热议问题