is java byte the same as C# byte?

后端 未结 4 1072
栀梦
栀梦 2020-12-17 17:17

Native method from dll works in java if the input parameter is array of bytes - byte[]. If we use the same method from c# it throws EntryPointNotFoundException.

Is t

4条回答
  •  情深已故
    2020-12-17 17:41

    What's the signature of the native function? How do you declare it in Java and in C#?

    The most common reason for EntryPointNotFoundException is that function name is mangled (esp. true if function is written in C++) or misspelled.

    Another source of problem is 'W' and 'A' suffixes for WinAPI function used to distinguish ANSI and Unicode versions of functions. .NET interop mechanism can try to guess the function suffix, so that may be the source of confusion,

提交回复
热议问题