سؤال

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