Вопрос

I have this dll library interface:

int MetEx(BYTE *Data_Ora,DWORD Prezzo)

I want to use JNA to call it, so I did this instance mapping:

int MetEx(byte[] Data_Ora, int Prezzo);

But I'm not very sure the DWORD is well converted to int. Can you confirm this?

Это было полезно?

Решение

Yes, DWORD is equivalent to int.

There is even a Java-side DWORD, if you'd like to use that instead.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top