Re: Java call C DLL File




> I am not sure whether it is suitable location.
> I have a Java Project to call C++ DLL File.
> So I want to debug DLL file.
> How to configure Java side and C++ side?
>
> Thanks
> my C++ env: VC6.0++
> my Java: J10g
>
> on java side:use System.loadlibery("CDLLFILE");
>

Probably the simplest way is to debug from the DLL's project,
and specify the executable that loads and calls the DLL as
the "Executable for debug session" in project settings
(Project | Settings | Debug | General).

Here you can find additional information:
http://msdn.microsoft.com/library/en-us/vccore98/html/_core_methods_for_debugging_dlls.asp

Regards,
Oleg
[VC++ MVP]





.



Relevant Pages

  • Re: Is conditional compiling possible in JAVA?
    ... Use boolean constants and let the compiler figure out if code can be ... many C/C++ preprocessors don't barf on Java input ... All you do is change debug to true or false and if set to false, ...
    (comp.lang.java.help)
  • Re: Eclipse Debugging Framework
    ... >I need information in understanding the need of a seperate Java Debug ... This is how the Eclipse debugger works. ... It is working at the machine code level, but has a map of C ...
    (comp.lang.java.softwaretools)
  • Re: Is conditional compiling possible in JAVA?
    ... Use boolean constants and let the compiler figure out if code can be ... many C/C++ preprocessors don't barf on Java input ... All you do is change debug to true or false and if set to false, ...
    (comp.lang.java.help)
  • JNI noob question, and the whole thing too
    ... so now i want to test the java JNI example that is online on the ... how do i create a dll file without a c++ compiler? ... no hello in shared library path ...
    (comp.lang.java.programmer)
  • Re: MappedByteBuffer and corrupted data
    ... My serialisations are pretty simples. ... I've put "magic" byte for the debug, and some time, the byte i read is not equal to the "magic" value. ... public static void mainthrows Exception { ... In Java, bytes are signed, but the "bytes" you read off an InputStream ...
    (comp.lang.java.programmer)

Loading