-
April 12th, 2012, 04:10 AM
#1
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
Last edited by htuan_2005; April 12th, 2012 at 08:45 PM.
-
April 12th, 2012, 05:08 AM
#2
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
Victor Nijegorodov
-
April 12th, 2012, 09:28 PM
#3
Re: MFC with JNA(Java Native Access)
but, get data from Java and show time respectively in C,C++/MFC
-
April 12th, 2012, 09:32 PM
#4
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
-
April 13th, 2012, 12:30 AM
#5
Re: MFC with JNA(Java Native Access)
...or simply get rid of Java.
-
April 13th, 2012, 04:05 AM
#6
Re: MFC with JNA(Java Native Access)
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|