How to use .dll compiled in Delphi in Java?

Can anyone provide me information how to use .dll compiled in Delphi in Java? The .dll Delphi program may be non-OOP program.

Hi
If You want to write anything in PASCAL then simply write JNI code in C++ and call functions from this DELPHI DLL, but remember about changing the order of parameters etc when You call it. I had exactly the same problem, but it is possible, and we succeed.
You will need exact description of input parameters required by PASCAL functions and of output parameters. Then construct in C++ objects wchich looks in memory exacly the same as they will look if You will be using PASCAL. Then PASCAL function will interprete this area in memory as known structure and will run.
Maciek

Similar Messages

  • How to use dll in Labview ?

    I compile this code to dll file with VC++2010 filename is test_dll.dll .
    #include "stdafx.h"
    #include <iostream>
    #include <Windows.h>
    using namespace std;
    int main(int a){
        cout << "Test dll...............\n";
        return a;
    After that, I put Call Library Function node in editor and double click Call Library Function node. I browse test_dll.dll into Library name or path and set function prototype to int32_t main(int32_t a); but it show error Call Library Function Node 'test_dll.dll:main':function not found in libraly. How to use dll in Labview ?  And I have more question is what is differrent from Tools -> Import -> Shared Library(.dll) and use Call Library Function node.
    Solved!
    Go to Solution.

    The issue you are having is that LabVIEW is not capable of using C++ DLLs directly. It only handles C DLLs. This does not mean that if you you cannot use the DLL if it's compiled with the C++ compiler as opposed to the C compiler. Rather, it means that you must take extra steps in order to use it from LabVIEW. The primary issue is that of name mangling or adornment. This is discussed here: http://zone.ni.com/devzone/cda/tut/p/id/4877. Basically you need to prepend extern "C" in front of your prototypes in your header files. I would also suggest reviewing this article: https://decibel.ni.com/content/docs/DOC-14564.

  • How to use dll function in JDeveloper?

    I want to use function in dll to develope my application,but
    I can't find how to do that in the JDeveloper document.
    null

    You have to use the Java Native Interface to use dlls. The JNI
    tutorial at http://java.sun.com/docs/books/tutorial/native1.1/
    walks you through the basics and provides a sample too.
    Hope this helps.
    Regards,
    yinjun (guest) wrote:
    : I want to use function in dll to develope my
    application,but
    : I can't find how to do that in the JDeveloper document.Who can
    : give me an answer? Thanks a lot in advance.
    null

  • How to Use DLL Function in Java Applet

    Hi all,
    I have been assigned a task to develop java applet. The problem is, I need to use DLL functions in my applet to read records. Could you pls anyone guide me how to interface DLL and applet to read records with sample code?
    I'm using JDK 1.5.0_06 and Windows XP OS. thanx..
    best rgds,
    jpdbay

    You will need to use Java Native Interface JNI. Ther are many posts on the subject, please search, and this is the documentation:
    http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/jniTOC.html

  • How to Use SDK compile all MXML file in project ?

    Who can teach me ? Plz
    1.How to Use Adobe SDK to compile all MXML file in project ?
    2.How to Use Ant to compile all MXML file in project ?
    Thanks everyone !!

    Thank you first!
    Yes,you are right,since I am new to illustrator,and I want to try to write a plugin,
    I have read the sdk doc and API and opened the sample in vs2010,but no idea about how to operate the pdf doc in illustrator with api.
    Hope more advise or any examples,thank a lot.

  • "How to use CWIMAQ control for delphi 6.0 professional?"

    I'm using frame grabber card PCI-1424 of yours and i'm developing my application in Delphi 6.0 Professional. So can anyone guide me how to use the NI controls in delphi application? Thanks in advance.

    Hello,
    Are you using ComponentWorks IMAQ Vision? If so, there is a chapter of the ComponentWorks IMAQ Vision manual that deals with the development of applications for Delphi.
    Getting Results with ComponentWorks IMAQ Vision
    http://digital.ni.com/manuals.nsf/webAdvsearch/118D3E816C49EF06862566C5006CC7E7?OpenDocument&vid=niwc&node=132100_US
    National Instruments no longer supports the development of applications in Delphi, but Chapter 5 of that manual should get you started. The instructions in the manual may need to be updated depending on what functions you use. This is due to upgrades that have occurred since that manual was created.
    Take a look at the manual and let me know if you have any additional questions on this issue.
    Regards,
    Scott R.
    Ap
    plications Engineer
    National Instruments

  • How to use crystal report in delphi 6?

    i want to use crystal report in delphi 6,including sso and the way to use opendocument in delphi 6 ? thanks advanced!

    There is a number of blogs that Trevor Dubinsky penned a while ago. Enter the string 'crystal delphi prism' in the search box in the top right corner and that will bring those up - as well as KBAs and more.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to use of ffmpeg or jffmpeg with java

    I am creating an application in java to convert one video format to other. (eg. avi to wmv) . as JMF does not support all the video formats available today. I read on the net that I can use ffmpeg or jffmpeg together with jmf to process many video formats. but i did not get any example or guide to use ffmpeg with java. Can you plese guide me how to use this libraries with jmf. with some example or simple steps to integrate ffmpeg with jmf.
    I am using java 1.6 and jmf 2.1. eclipse IDE and windows xp professional and redhat linux.

    Can you plese guide me how to use this libraries with jmf. No.
    This is a JMF forum. 3rd party stuff like ffmpeg is not supported here.

  • How to use chart engine for web dynpro java(EP) for Graphics generation.

    Hi Frndz..
    now lookiing out for different types of dynamic graphics generations according to my requirment, n i saw the followiing blog
    Testing BusinessGraphics in Web Dynpro for Java
    Itz very nice to see that we can generate planty of types, but here our server is EP 7.0(not CE 7.1) and i gone thru  these links also
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/86/243f403f0a9354e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/0b/79553b066d9414e10000000a114084/frameset.htm
    https://help.sap.com/saphelp_nw04/helpdata/en/0c/95c83956852b51e10000000a114084/frameset.htm
    here it seems to be Chart Engine n Chart Designer is mainly for BSP(R3), how best we can use this for web dyn pro java.
    Thanks in Advance
    Regards
    Rajesh

    hi
    if you want to use BusinessGraphics in WebDynpro java you have to configure IGS.
    IGS Configuration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4846ac90-0201-0010-099d-d3b4e271849c
    Business Graphics docs.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3261cd90-0201-0010-268c-d8d72e358af6
    ChartDeigner Usage
    http://help.sap.com/saphelp_nw04/helpdata/en/18/d4d43fb9490c65e10000000a114b1d/frameset.htm
    Generating Gantt chart using web dynpro business graphics

  • How to use UI Element "AbstractApplet" to embedd java applet in WDA

    Hello,
    I want to embedd a java applet in a WebDynpro ABAP application and I've found the following statement on SAP online help:
    The Active Control Framework (ACF) enables the development of applets or ActiveX-based controls that can be embedded in Web Dynpro ABAP.
    Link:[AbstractApplet|http://help.sap.com/saphelp_nwpi71/helpdata/en/47/b915bc878a2d67e10000000a42189c/frameset.htm]
    Is there any further help, how to use this (abstract) UI Element to integrate a given java applet?
    Kind Regards,
    Guido

    Hi,
    As per the link you gave,
    In the View layout, You can use the UI elements like - AcfExecute and AcfUpDownload. For upload and download the things.
    Try to use these UI elements and get the reference of the Abrstact APplet class and use the methods inside it.
    Regards,
    Lekha.

  • How to use debugproxy for debugging on AS-Java?

    Dear Sirs,
    I'd like to debug java program on AS-Java without occupying AS-Java instance.
    I expect debugproxy can help it.
    I could enable it on SAP Management Console, but I don't know how to use it with NWDS.
    Could I get instraction of using debugproxy with NWDS?
    In addition, I'm afraid that my idea is feasible and debugging always occupy AS-Java instance. It means I have to have another instance specified for debugging.
    Please advise me.
    Best regards,
    Shingo Suzuki

    Hi Shingo,
    Not always
    Check [this|SAP NW CE 7.1: Start Debug Session... vs. Enable Debugging; thread.
    HTH!
    \-- Vladimir

  • How to use matlab compiled DLL in Labview ?

    I have LV 8.5, and am unable to use a matlab compiled DLL in my LV code. I have tried the 'import'  command, but it does not list any functions. However, it does not show any errors during its execution. The existing solutions/responses to this question do not work either. I would also like to know of a way to deal with mxArray datatype. What is its equivalent in C (or any other high-level language) ? How do I retrieve an array that is returned from the matlab dll ?

    I'm assuming you have either Matlab installed or at the very least the Matlab Runtime, otherwise the DLL won't work. The "import" command relies on having a header file. Do you have one? You also need to make sure the DLL has been compiled so that it's compatible with LabVIEW. The most likely problem is name mangling, which also occurs when you try to compile a DLL written in C++. See this post, which contains links to useful posts.
    The mxArray datatype is a special datatype which is actually a structure. It's complicated. Your best bet is to create a C DLL that acts as an intermediary between the Matlab DLL and LabVIEW. If you are able to, you can, instead, simply call the Matlab code directly using the Matlab script node.

  • How to use DLL written in VB in JSP

    I have a .dll written in Visual Basic. I want to use that dll in JSP. can anyone tell me is it possible? if yes than how.
    please rely with a complete example.
    Thanks in advance
    Lalit

    I thought JNI required that it be a C++ DLL.
    Maybe you could wrap that DLL as a COM object and used a COM bridge to talk to it.
    "please rely with a complete example." - I don't have one, but if I did I'd ask you to please reply with a lot of USD. This isn't an on-demand free consultancy, you know.

  • How to Use DLL correctly in LV ?

    I'm trying to use a DLL from former S/W written in C++.
    The DLL is using other DLLs.
    The LV doesn't find the other DLLs although they are in the same directory .
    Can you direct me how to pass this issue ?
    Thanks
    Edo

    > I'm trying to use a DLL from former S/W written in C++.
    > The DLL is using other DLLs.
    > The LV doesn't find the other DLLs although they are in the same
    > directory .
    > Can you direct me how to pass this issue ?
    >
    You are using the DLL node correctly, but the problem is that it is
    Windows looking for the supplementary DLLs, and it has a pretty fixed
    set of places it looks. Putting the supplementary DLLs in the Windows
    System directory definitely works -- this is why so many apps just dump
    them in there. I think that setting your working directory to the
    location of the DLLs will also work, but not real sure about that.
    Greg McKaskle

  • How to use dll's(Functions) in java ?

    Hi
    I want to use the windows : shell32.dll. The declaration is as follows:
    Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" ( _
         ByVal hwnd As Long, _
         ByVal lpOperation As String, _
         ByVal lpFile As String, _
         ByVal lpParameters As String, _
         ByVal lpDirectory As String, _
         ByVal nShowCmd As Long) As Long
    I load the library via System.loadLibrary("shell32") and define the native methods(in java code):
    public native long ShellExecute(
    long hwnd, String lpOperation, String lpFile,
              String lpParameters, String lpDrectory, long nShowCmd);
    but i get a: java.lang.UnsatisfiedLinkError: ShellExecute. Whats wrong ? For long hwnd i used "0" for the first time, but this shouldn't be the problem. Any idea ?
    hte problem i have is to execute a very difficult programm. this need a system(windows) shell to run. so i try to start it with the shell32.dll. in VisualBasic i found my aim using this topic, but it doesn't run in java.
    thanks for help.
    pain
    pain

    work at this addresses: http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html
    If you understand anything write me, too. because I have the same problem and I worked and I coul not understand
    Good Luck..
    ABDURRAH&#304;M KAPLAN [email protected]

Maybe you are looking for

  • 'Releasestepcreated' not getting triggered for PR generated through MRP run

    Hi, I have PR Release strategy workflow configured, working well when i try to create PR manually, triggers workflow. PR's created thorugh MRP run, triggers release strategy but not workflow. I checked the event trace 'releasestepcreated' event not t

  • Using Date objects in SQL statements

    Hi, I am wondering if it is possible to use Date objects while trying to retrieve entries from an access database with fields set as "Date/Time" fields, as opposed to "Text"? If so, do I need to reformat it before inserting it into the SQL statement,

  • How to enable cookies to watch video clips??

    I was sent a link to a website to watch video clips (educational training). On the registration page it tells me I will need to "enable cookies" in order to watch the video clips-please adjust your browser settings. It tells me what I have to do but

  • Invoice by e-mail to multiple mail ids

    Hi, I have a requirement to send the sales invoice by e-mail to multiple mail id's. Mail ids will be maintained in the customer master record --> General Data -- > Contact Person TAB. Please help me inconfiguring this scenario in detail. Thanks Parve

  • Dynamically calling Movieclips

    Right, to say I'm getting a little fristrated with this is an understatement. Basically, I'm using attachMovie to load in a linked movieclip from the library, I then need to dynamically (depending on which part of the movieclip is clicked) load in an