CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    1

    using DLL from Java

    Hi All!

    I have problem with using Java DLL.
    In my programm I try to hook up implicit Java DLL, but it takes error on the first string:

    //-----------------------------
    #include "Wrapper.h"

    int main()
    {
    Wrapper wrapper;
    }
    //-----------------------------

    I linked .lib file and register .dll in system, but then I debugging this app exeption arises in file crtexe.c on the string "mainret = main(argc, argv, envp);"
    Exeption is:
    "Unhandled exception at 0x0015d186 in CPP_SingleShotSample.exe: 0xC0000005: Access violation reading location 0x00000000."

    Before this case I never work with Java DLL... so I don't have any versions how to solve this problem .
    Thanks in advance

  2. #2
    Join Date
    Nov 2007
    Posts
    613

    Re: using DLL from Java

    I don't think it does matter what language was used to write a dll as long as you comply with the calling conventions. The only problem is the difference between managed and unmanaged dlls.

    The error you received tipically occurs if you try to access something using a NULL pointer.
    Last edited by srelu; March 29th, 2009 at 08:21 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured