AdvertisementI'm writing JNI application for some C++ code. I don't have implementations of any functions but I'm pass values of parameters through my java program. e.g. in following OpenDevice function I can pass parallel port parameter(defined in C++) through Java. The implementation is just calling the function. It works.
........DWORD and BYTE are defined as unsigned long and unsigned char respectively.
now I want to read 'buffer' but when I try to read the buffer, the JVM fails.
Would any1 help me in above?
AdvertisementThe C function takes BYTE*, then the problem can be that you are not handling the Java native stuff correctly. Generally, you must have more C warpper code to create a jbyteArray using NewByteArray() in jni.h and copy data from BYTE buffer to it.
Can you show your Java native method signature?
- 1How can I list more than 100 VI's during Object find? 10-11
- 2Why doesnt my ipod touch 4g register in itunes? 10-11
- 3Maximum file/folder size for Copy Finder Items? 10-11
- 4Error when Installing R12 on Windows XP SP3 10-11
- 5Sorting by size in lightroom 10-11
- 6XI BIW integration without proxy?? 11-30
- 7Database file: forms disapeared but size of file remained 11-30
- 8Extracting audio from VCD 11-30
- STO non valuated material10/11
- Can't open raw files in photoshop ?10/11
- Error in SOAP sender CC. Channel stopped by administrative task.10/11
- IMac Refusing to Sleep10/11
- How to transfer music from dvd11/30
- Video Sender kills Time Capsule Network11/30
- IMac or MacBook? Have some questions11/30
- Carry-over of data11/30
- Have to log on to open Query in BEX Browser11/30
- Corrupt ERD's in Designer 9i11/30