C# delegate for C++ callback

前端 未结 3 1060
北恋
北恋 2021-01-04 13:02

I think I have basically understood how to write c# delegates for callbacks, but this one is confusing me. The c++ definition is as follows:

typedef int (__s         


        
3条回答
  •  难免孤独
    2021-01-04 13:30

    A .NET long is 64bits. A C++ long may be just 32bits. Check with the C++ compiler which compiled that definition as to what size it's longs are.

提交回复
热议问题