Forum Stats

  • 3,874,142 Users
  • 2,266,672 Discussions



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

Return Value:

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

Please help me . thank and regards.


  • EJP
    EJP Member Posts: 32,924 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
    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:
    (LPARAM) : CDR_DLL_Version dll_version(OUT) // DLL Information.

    Please help me, thanks.
  • EJP
    EJP Member Posts: 32,924 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
    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,924 Gold Crown
    You're just repeating yourself. Question remains completely unclear. Locking this thread.
This discussion has been closed.