DLL's are usually written with either the "STDCALL" or "SAFECALL" calling convention, and byte alignment in all structures.
Main Topics
Browse All TopicsWe got this dll from another company to integrate with our delphi application. The problem is we can't seem to make the java dll work properly. We are not exactly sure why. We asked the third party company to help but they don't know the answer either. So far they told us to use visual c++ to create the app to connect with their dll. However, the program is entirely finished in delphi and we are in a strict deadline to finish the application within a few weeks. Is there a work around for this problem or could delphi not communicate with java at all?
Please provide us with a basic code on how to integrate a java dll with the delphi application.
Btw. One of the errors we are getting is something like:
"the proceedure entry point <function name> could not be located in the dynamic link library *.dll."
Any help will be greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: swift99Posted on 2003-11-05 at 19:18:24ID: 9691726
1. Jave generally is not used to create DLL's. Java is platform independent, while DLL's are strictly for Windows. It would be possible to encapsulate Java code in a DLL that incorporated a JVM, but it would be a bit of a crazy way to do it.
2. C typically prepends an _ to the beginning of the function names
3. Is the DLL an ActiveX/COM interface? Try registering it, instantiating its object, and calling the object's method.
4. Check M$oft's knowledge base for a DLL explorer type thing.
5. Look up the specs on JNI
6. IBM AlphaWorks used to have a two way bridge for Java to COM interfaces