-
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
-
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.