MFC with JNA(Java Native Access)
exame in Java I code :
Code:
for (int i = 0; i < 5; i++)
System.out.println(i);
result in afew milliseconds:
Code:
0 in seconds 1 (assume)
1 in seconds 2
2 in seconds 3
3 in seconds 4
4 in seconds 5
Help me :
I want get result of i in Java to showing text in dialog MFC as time above
in dialog will show in text box :
in first second show : 0
in 2sd second show : 1
in 3rd second show : 2
in 4th second show : 3
in 5th second show : 4
_______
a anonymou guide me use JNA ,but i don't know how handle, and don't know Search in GOOGLE with what Key
Help me,thanks :)
Re: MFC with JNA(Java Native Access)
Have a look at ::SetTimer API and WM_TIMER message (if using plain WIn32)
In MFC - CWnd::SetTimer, CWnd::OnTimer
Re: MFC with JNA(Java Native Access)
but, get data from Java and show time respectively in C,C++/MFC
Re: MFC with JNA(Java Native Access)
i think transfer into Java a variable,then use JNI to get that variable show in MFC, but i don't know how :D
Re: MFC with JNA(Java Native Access)
...or simply get rid of Java. ;)
Re: MFC with JNA(Java Native Access)
Quote:
Originally Posted by
htuan_2005
i think transfer into Java a variable,then use JNI
Tell us what you want to do without mentioning Java or JNI.
This is a Visual C++ forum, and if you can't explain clearly what you want to do without mentioning "JNI" or Java,, then I suggest you go to the Java forum and ask them, since JNI is Java technology.
Regards,
Paul McKenzie