Subj : Re: linking 32 bit modules with 16 bit modules To : borland.public.cpp.borlandcpp From : "Sebastian Ledesma" Date : Fri Nov 21 2003 08:08 pm Jose: You must use thunks, but it's not possible in W2k, only in Win9x (to call a 16 bit DLL from a 32bit one). It's possible to do with BC5.0x but dont know about 5.5. You should check a the cppbuilder.commandlinetools newsgroup, that's the official site for the BCC5.5. Saludos Sebastian "José Miguel" escribió en el mensaje news:3fbe86ac@newsgroups.borland.com... > I need to call functions in a DLL from a Java program, but that DLL is > compiled in 16 bit mode and I don't have the source code. I need to call > functions from a Java program by means of JNI. > I think I have to write a DLL to be compiled in 32 bit mode in order to make > it callable from JNI and from this DLL call the DLL which has the function I > actually need. > I'm using Borland Compiler 5.5 > > Any hint? > > Thanks a lot in advance > > .