Click here to Skip to main content
15,914,452 members
Home / Discussions / Java
   

Java

 
GeneralRe: Problem with JRadionButton are all selected if clicked one by one Pin
Firo Atrum Ventus20-Sep-11 18:53
Firo Atrum Ventus20-Sep-11 18:53 
QuestionJava Pin
Bitewell17-Sep-11 2:03
Bitewell17-Sep-11 2:03 
AnswerRe: Java Pin
Richard MacCutchan17-Sep-11 3:05
mveRichard MacCutchan17-Sep-11 3:05 
AnswerRe: Java Pin
srikanth venkatesh30-Sep-11 4:21
srikanth venkatesh30-Sep-11 4:21 
Questionhow to compile with -Xlint in netbeans Pin
flashery16-Sep-11 5:07
flashery16-Sep-11 5:07 
AnswerRe: how to compile with -Xlint in netbeans Pin
Richard MacCutchan16-Sep-11 5:22
mveRichard MacCutchan16-Sep-11 5:22 
AnswerRe: how to compile with -Xlint in netbeans Pin
flashery16-Sep-11 16:45
flashery16-Sep-11 16:45 
QuestionNeed suggestions for making a native DLL easily callable from Java Pin
Gary Wheeler15-Sep-11 7:46
Gary Wheeler15-Sep-11 7:46 
I am providing an interface to one of my products as a 'C' language DLL, compiled using Microsoft Visual Studio 2008. The interface may be used in a Java application. I don't know Java, so I could use some guidance on things I need to do in my DLL to make it as easy to use as possible.

The functions in my DLL only take arguments in the form of 32-bit signed integers, pointers to integers, and constant UNICODE (const wchar_t*) strings, and return 32-bit signed integers. I would like to let them use callback functions with similar signatures. The target environment could be Windows XP, Windows 7 (32-bit), or Windows 7 (64-bit).

I've done some preliminary reading, and it appears that Java Native Access[^] (JNA) is the easiest way for a Java client to use functions in a DLL like this.

Are there any gotchas I need to be aware of?
Software Zen: delete this;

AnswerRe: Need suggestions for making a native DLL easily callable from Java Pin
Nagy Vilmos15-Sep-11 23:24
professionalNagy Vilmos15-Sep-11 23:24 
GeneralRe: Need suggestions for making a native DLL easily callable from Java Pin
Gary Wheeler16-Sep-11 0:16
Gary Wheeler16-Sep-11 0:16 
GeneralRe: Need suggestions for making a native DLL easily callable from Java Pin
Richard MacCutchan16-Sep-11 1:36
mveRichard MacCutchan16-Sep-11 1:36 
GeneralRe: Need suggestions for making a native DLL easily callable from Java Pin
Gary Wheeler16-Sep-11 1:42
Gary Wheeler16-Sep-11 1:42 
GeneralRe: Need suggestions for making a native DLL easily callable from Java Pin
Richard MacCutchan16-Sep-11 2:23
mveRichard MacCutchan16-Sep-11 2:23 
GeneralRe: Need suggestions for making a native DLL easily callable from Java Pin
Gary Wheeler16-Sep-11 2:40
Gary Wheeler16-Sep-11 2:40 
GeneralRe: Need suggestions for making a native DLL easily callable from Java Pin
Richard MacCutchan16-Sep-11 5:18
mveRichard MacCutchan16-Sep-11 5:18 
QuestionMain method Pin
Sarika G Shinde14-Sep-11 2:57
Sarika G Shinde14-Sep-11 2:57 
AnswerRe: Main method Pin
Richard MacCutchan14-Sep-11 3:39
mveRichard MacCutchan14-Sep-11 3:39 
GeneralRe: Main method Pin
Nagy Vilmos14-Sep-11 4:34
professionalNagy Vilmos14-Sep-11 4:34 
GeneralRe: Main method Pin
Richard MacCutchan14-Sep-11 4:43
mveRichard MacCutchan14-Sep-11 4:43 
GeneralRe: Main method Pin
jschell14-Sep-11 13:39
jschell14-Sep-11 13:39 
GeneralRe: Main method Pin
Richard MacCutchan14-Sep-11 22:29
mveRichard MacCutchan14-Sep-11 22:29 
GeneralRe: Main method Pin
jschell15-Sep-11 10:47
jschell15-Sep-11 10:47 
GeneralRe: Main method Pin
Richard MacCutchan15-Sep-11 22:20
mveRichard MacCutchan15-Sep-11 22:20 
GeneralRe: Main method Pin
jschell17-Sep-11 14:46
jschell17-Sep-11 14:46 
GeneralRe: Main method Pin
Richard MacCutchan17-Sep-11 21:22
mveRichard MacCutchan17-Sep-11 21:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.