This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,827 Users
  • 2,269,775 Discussions
  • 7,916,823 Comments

Discussions

GET WINDOW MESSAGE FROM JNA

843829
843829 Member Posts: 49,201
edited Sep 9, 2010 2:14AM in Java Native Interface (JNI)
Hi all,
I have a problem when get result from function dll.
This is content of header file:

" extern "C" BOOL _stdcall MFSCdrIntake2();"

Following document description, after excute this function with JNA, result will be pass to window message.
This is description of window message. example

"Message: WM_MFS_CRD_MAGREAD
Return Value:
(WPARAM) : NONE
(LPARAM) : CDR_MAGTRACK magtrack(OUT)
=================================================

Big question: how to get window message after call function dll. (using JNA)

Please help me . thank and regards.

Comments

  • EJP
    EJP Member Posts: 32,943 Gold Crown
    Following document description
    Can we please not just 'follow' the document but see what it actually says verbatim?
  • 843829
    843829 Member Posts: 49,201
    Hi,
    Why you can not show me.
    I want get message window with JNA after call function from dll file.

    Example: message is define

    Message: WM_MFS_CRD_MSG
    Return Value:
    (WPARAM) : NONE
    (LPARAM) : CDR_DLL_Version dll_version(OUT) // DLL Information.

    Please help me, thanks.
  • EJP
    EJP Member Posts: 32,943 Gold Crown
    edited Sep 8, 2010 2:13AM
    Why you can not show me.
    Because I don't know what you're talking about yet, because I asked you a question and you haven't answered it yet.
    I want
    If you don't understand the question, say so, but don't just repeat yourself.
  • 843829
    843829 Member Posts: 49,201
    HI,
    I'm sorry for my mistake.
    I will talk again about my problem.

    First, I have files xxx.dll,xxx.h (written by my partner) and document for functions.
    Second, I am using JNA (java native access) to call the functions.
    But, it has some functions that function's result is pass over memory of window.
    In document description, it has tow constant: WM_USER = 0x0400, WM_USER_ENV = (WM_USER + 0)
    I have just learn, so i don't know about that.

    So, my problem is " i don't know how to get result of function that passed over to memory window )

    Please help me. Thank you.
  • EJP
    EJP Member Posts: 32,943 Gold Crown
    You're just repeating yourself. Question remains completely unclear. Locking this thread.
This discussion has been closed.