Thrid Party DLL File

Hi,
How to use Thrid Party DLL File through Java Access Bridge or Any other way.
Thanks

You should find the information at http://java.sun.com/products/accessbridge/docs/index.html

Similar Messages

  • Thrid party DLL function call.

    Hello,
    I am a programming novice trying to learn more about Java. I am currently working on a project for my employer (a side project really) that is used in generating some specific alpha-numeric codes. Actually, I am re-writing an existing program into Java as a personal exercise for myself but it may have some useful applications down the line.
    This project requires me to use a 3rd party DLL function call. I have been trying to follow through the process of using the JNI interface, however, I believe that I need to create a wrapper DLL to handle the function call. Does anyone know how to do this or can they point me in the right direction? I believe the 3rd party DLL was written in C++ but that's all I know at this point.
    Any help is appreciated.
    TIA

    To those of you who will look this topic up and wonder how I was able to do that here:
    (using Visual C++ for the example)
    3rd party DLL : Key32.dll
    wrapper DLL: Key32Liaise.dll
    SWIG interface: Key32Liaise.i
    wrapper class: Key32Liaise
    1) Make reference to your external function call as if it were a class method. The class name should be that of your "wrapper" class. (e.g. Key32Liaise.getHashCode() ) I like to call the wrapper class the "laise" class because it acts as the go-between.
    2) Download SWIG. Create your interface file and run the command: swig -java -shadow -c++ Key32Liaise.i This will generate Key32Liaise.java shadow class and Key32Liaise_wrap.cxx wrapper code.
    3) Compile the Java code into Class files and generate a header file for the wrapper class (i.e. javah Key32Liaise). You will need this header file even though the SWIG site doesn't mention this.
    4) Open VC++ and open a new project file Key32Liaise to create a DLL. Write the C++ code that calls up the function from the Key32.dll file. You will have to look that up from the MSDN site...too much to put down here.
    5) Include the appropriate files and complile the wrapper DLL.
    Hope that make sense!!!

  • Where is the right path to deploy third party DLL? "Support Files"?

    Hi, After Effetcs developers:-)
    Here is question about install path of DLL for After Effects plug-in.
    I'm developing Effects plug-in run with CUDA, so I have to deploy third party DLL to client PC.
    So where is the right path to put DLL such as cudart32_30_14.dll?
    I think it's under "Support Files", because my plug-in runs with cudart32_30_14.dll
    in "C:\Program Files\Adobe\Adobe After Effects CS4\Support Files"
    Am I right?

    well... that depends.
    when you rely on an external library, the external dll is expected to be somewhere along the path, as it appears in the command prompt.
    places like win32, and sxs folders are in that path.
    you could also put the support dll in the same folder as your plug-in. any process automatically includes it's own directory in the search path.
    if you don't want to put it in any of these pre-set locations, then you have to program the path into the dll loading function.
    if you choose to do that, you can put the support dll anywhere you like.

  • Calling dll file to control a third party board from PC Control.

    Hi there,
    I have this hawkeye stepper motor control board from PC control company. 
    It comes with a software written by the company  which is in DLL format. I would like to call the DLL file in labview and be able to do further programming on it using labview platform to control the motor board. 
    The reason that I need to call this DLL file is because labView does not recognise the control board when connected to it. 
     I would really be grateful if anyone who has purchased the same motor control board from PC control company before and successfully using labview to control it could share the code and driver with me. 
    Many thanks.
    XI CAN LIU

    Hello,
    I'm not using that vendor products so I can't help you directly with your issue.
    Nevertheless, you can find several documents on this site explaining how to use DLLs in LabVIEW: I point you to three of them, but yu can find more with apropriare searches.
    Can LabVIEW C? - Example 3: Using the Right Tools with LabVIEW a whitepaper on using external DLs in LabVIEW
    Calling External Code From LabVIEW link useful documents on how to call different external codes in LabVIEW
    Using Existing C Code or a DLL in LabVIEW a tutorial which explainh how to use DLLs
    I must also warn you that this is not the proper forum board where to post LabVIEW-related questions: this board is dedicated to LabWindows/CVI users, while there is a specific board for LabVIEW users where I suggest you to post further questions.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Error accessing method in 3rd party dll

    already asked for help a few weeks ago but no one answered and i still wasn't able to figure out what the problem...
    i have a 3rd party dll and im trying to access some methods (USING JNI)- i have no problem accessing methods with no parameters and they work fine but a method with parameters just wwont work.
    i guess that its something with my syntax - probably incorrect data type when converting from java type to native type...
    i dont have any previous expirience with c so help would be appriciated...
    heres my java code:
    package pavel2.javay;
    class Test {
        native String VersionGet();
        native String loadDll();
        native String LogInMT4(int account,String  pass,String server,String a,String v,String c,String d);
        static {
            System.loadLibrary("pavel2");
        public static void main(String args[]) {
            Test t = new Test();
            System.out.println(t.loadDll());
            System.out.println(t.LogInMT4(230622,"qd1bvvs","Orion-DEMO","","","",""));
    }and the dll wrapper:
    #include <windows.h>
    #include <C:\\Program Files\\Java\\jdk1.6.0_10\\include\\jni.h>
    #include <C:\\Program Files\\Java\\jdk1.6.0_10\\include\\win32\\jni_md.h>
    typedef char*   (*LogIn_MT4)( const int login, const char *password, const char *server, const char *proxyserver,
                   const char *proxytype, const char *proxylogin, const char *proxypassword);
    HINSTANCE hOle2Dll;
    JNIEXPORT jstring JNICALL Java_pavel2_javay_Test_loadDll(JNIEnv * env, jobject jobj){
         hOle2Dll = LoadLibrary(TEXT("D:\\pavel2\\tzmt4api.dll"));
         return  (*env)->NewStringUTF(env, "tzmt4api.dll loaded!!");
         /*if (OleInitialize(NULL) == S_OK)
              if ( hOle2Dll >= 32 )
                   //FreeLibrary ( hOle2Dll ) ;
    JNIEXPORT jstring JNICALL Java_pavel2_javay_Test_LogInMT4(JNIEnv * env, jobject jobj,jint login, jstring password, jstring server,jstring proxyserver,jstring proxytype,jstring proxylogin,jstring proxypassword){
                   LogIn_MT4 fnc ;
                   fnc = (LogIn_MT4)GetProcAddress ( hOle2Dll , "LogIn_MT4" ) ;
                   if ( fnc == NULL )
                        MessageBox(NULL, TEXT("Error loading Method"), TEXT("Error"), MB_OK);
                   else
                   const char *pass = (*env)->GetStringUTFChars(env, password, NULL);
                   const char *ser = (*env)->GetStringUTFChars(env, server, NULL);
                   const char *proxyserv = (*env)->GetStringUTFChars(env, proxyserver, NULL);
                   const char *proxyt = (*env)->GetStringUTFChars(env, proxytype, NULL);
                   const char *proxylog = (*env)->GetStringUTFChars(env, proxylogin, NULL);
                   const char *proxypass = (*env)->GetStringUTFChars(env, proxypassword, NULL);
                   int a=fnc(login, pass, ser, proxyserv,proxyt,proxylog,proxypass);
                   (*env)->ReleaseStringUTFChars(env, password, pass);
                   (*env)->ReleaseStringUTFChars(env, server, ser);
                   (*env)->ReleaseStringUTFChars(env, proxyserver, proxyserv);
                   (*env)->ReleaseStringUTFChars(env, proxytype, proxyt);
                   (*env)->ReleaseStringUTFChars(env, proxylogin, proxylog);
                   (*env)->ReleaseStringUTFChars(env, proxypassword, proxypass);
                   //return  (*env)->NewStringUTF(env, empty);
                   return  (*env)->NewStringUTF(env, "logged");
                             //int c = fnc(login, *password, *server, "", "", "", "");
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
         switch (ul_reason_for_call)
         case DLL_PROCESS_ATTACH:
         case DLL_THREAD_ATTACH:
         case DLL_THREAD_DETACH:
         case DLL_PROCESS_DETACH:
              //todo: unregister class here
              break;
         return TRUE;
    }this is the output:
    tzmt4api.dll loaded!!
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0xcccccccc, pid=3792, tid=3824
    # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C 0xcccccccc
    # An error report file with more information is saved as:
    # C:\Program Files\TradeZone\TZMT4APInew\Work\hs_err_pid3792.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Process finished with exit code 1
    p.s - it looks like the login method works but when returning to java the VM crashes
    can anyone help me?

    jschell - tried this already and got the same ..
    ejp - i cant do this bucause i dont have a .lib and this proccess can run only on windows unfortunately...
    my problem is that i dont know the how to create the correct type for the method:
    this is the signature:
    typedef int  (*LogIn_MT4)( const int login, const char *password, const char *server, const char *proxyserver,
                   const char *proxytype, const char *proxylogin, const char *proxypassword);how do i create in c this var types?
    int a=fnc(1531, "asas", "asd", "","","","");how do i create
    const char *xxx type? and its okay for the int just to write a number or i also need to declare it?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can i import dll files in java project in eclipse?

    Hi All,
    How can i import or link dll files in java project in eclipse?....
    dll files contains
    import com.ms.com.ComLib;
    import com.ms.com.Variant;
    import com.ms.com.ComFailException;
    import com.ms.wfc.data.AdoException;
    import com.ms.wfc.data.AdoEnums;
    Any idea of this please tell me.....
    I am using eclipse 3.4 and JRE 1.4
    Is this possible?
    Please tell me!!!!!!!!!!!!!
    Voddapally

    iMovie cannot edit mpg files, unles they come directly from a supported camera.
    I would suggest that you use a free third party app to convert it.
    Get MPEG Streamclip from Squared 5, which is free.
    Drag you mpg clip into MPEG Streamclip.
    Then, FILE/EXPORT USING QUICKTIME
    Choose Apple Intermediate Codec, and save it where you can find it. You should be able to import this file into iMovie, using the FILE/IMPORT/MOVIE command.
    Note: If your file is an MPEG2 clip, you may need to purchase the Apple QuickTime MPEG2 Playback Component from Apple. MPEG Streamclip will tell you if you need this. Don't buy it unless you have to. It costs about $20. You just have to install the component. MPEG Streamclip will use it in the background.

  • How to call Fortran .dll file that using other library files?

    Hi,
    I am trying to do some arkward tasks using LabView, and I am desperately need help....
     A little bit background:
    1. My co-worker has some code written in Fortran, where he called other libraries (many from CERNLAB or PAW). Those stuffs are pretty powerful in mathmatical calculation and simulations.
    2. In some of my LabView code, I need to call his Fortran source code in order to do some complicated calculations. I have no capablility to translate his Fortran code to Labview (or is it even possible??), so we end up with trying to use "Call library function node" where I just provide input/outputs to communicate with his code. The idea sounds simple enough?
    3. We complie the Fortran code into .dll, and then specifiy the dll in "Call library function node". The first try with a very simple Fortran code, something like c = a+b*a, was sucessful. The dll file and Call lib function worked good. It's sort of proved the concept.
    4. Now I am trying more complicated Fortran code (say Test.dll), which calling other library (.lib files) that using typical "call xxx(a,b,c)" line, and my nightmare started....  It seems nothing was excuted when I call Test.dll in LabView.
    Questions:
    1. How do LabView know if the Test.dll code needs functions from other .lib files? Do I need to copy all the .lib files to a specific folder?
    2. When I create .dll file, for LabView to be able to use it, are there any special requirement on the way the .dll is compiled?
    3. Seems there is mismatch btw the data type in Fortran and LabView. For example, LabView's  Signed 8-bit Integer seems different with a integer in Fortran. How can i know the correlation btw data type in different langurage, i.e. LabView vs Fortran?
    4. Are there any good examples that I can take a look?
    I would highly appreicate any suggestions/helps!
    Rgds,
    Harry

    You are aware that Intel Visual Fortran is the successor to Compaq Visual Fortran (I think you made a mistype with the Virtual)? So an upgrade might be at its place.
    Anyhow I'm really not familiar with Fortran at all, but lib files are usually compiled into an EXE or DLL and not loaded dynamically. 1) 
    So there should be no problem with locating those libs. What most likely is a problem are other DLL dependencies such as any Fortran Runtime library or possibly other third party DLLs the more advanced code in your DLL might be using.
    Typically most compilers can be configured to link the runtime library code statically into the DLL, as altenbach reports for the Intel compiler, otherwise you must make sure to install the  redistributable Fortran Runtime Library for your compiler. Besides that you must make sure to find out what other runtime dependencies your code might have and install them.
    1) One exception I know of is LabWindows CVI which allows to also load lib files dynamically. This is supposedly a legacy feature from LabWindows for DOS, which allowed that feature to simulate dynamic module loading in order to swap modules at runtime to work around the 640k memory limitation of DOS.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • FI Changes for HR Payroll Integration with Thrid party Payroll Software

    Hi
    I am looking for information the SAP FI activities/ Changes to be done for enabling SAP HR Payroll integration with third party payroll softwares. Can you give some issues you might have encounter and any recommended thrid party payroll softwares. Highly appreciate any documentation on the same.
    Regards,
    Vic

    Download all the files into Execel, hope after tht u can change it to CSV.... To download HR MASTER DATA use Ad-Hoc qqry. Else use SE11, SE12 or SE16 to download IT wise. PA starts with PA0000 ets OM starts with HRP1000. Hope through this u can download and send to 3rd party system....
    In std we are having an option for 3rd part PY transfer. Check this if help
    SPRO>CROSS APPLICATION COMPONENTS>PREDEFINED ALE BUSINESS PROCESS> HUMAN RESOURCES>HR EXTERNAL SYSTEM

  • Add third party dll to solution

    In my solution/web part, I used a third party dll (newtonsoft.json.dll). I have added the dll to the solution and project level. I do not see the dll when I tried to add a reference. Please see the attached screen shot. Please let me know what is the correct
    way to add a third party dll to a SharePoint solution/web part. Thanks lot.

    (1) I already tried to add the dll from the .NET Framwork 4.5 folder. Then reference the dll from disk location. However, I got a "File not found exception" error.
    (2) I search on the web, some people suggest to add the dll as part of the solution. So I added the dll to the solution and project as "exiting item". However, I cannot reference to dll what is in the solution/project (please see my early
    post).

  • How to add third party dll in our installer using application builder?

    Hello friends,
    I have one application (VI) which is using some third party dll of protocol and now I want to make a installer which should install dll along with application exe. Please suggest the way ..
    Thanks
    Solved!
    Go to Solution.

    Hi,
    I placed it in project file and included it in category of "Always Included" in exe creation. Then after i created installer with needed NI drivers. But this installer didn't registered the dlls in project file. I registered it manually using regsvr32 command..
    Any help to do it automatically during installation..
    To brief my words, I need help to understand the process of third party dll registration during installation of installer created by application builder..
    Thanks

  • C# console application to dll file

    I have c# code that initializes a force feedback joystick and plays force effect file. I want to change this c# console application into a dll file so that I can use it in labview.
    http://stackoverflow.com/questions/24839498/converting-a-c-sharp-console-app-to-a-dll
    What I understood from this post is that I just need to create a class library and copy paste my codes there, is this correct? I did get a dll file by just doing that. If I'm wrong can you explain how to convert a console application to a dll?

    Create a new class library in the same solution (probably will want to line up the project name with the name of your library).  Move all the code from your console application to the class library except the code around the Main method.  Compile
    your code and fix any errors that are introduced.  You'll then have moved your code to a class library.
    To update the console app to use the class library add a reference to the library project.  Since you moved all the code from the console app you should be able to compile and it will mostly work.  The compiler errors will likely be around mismatched
    namespace names.
    Whether the managed code works in LabView is an entirely different problem.  Most third-party apps will not support or work with managed class libraries.  As such you'll likely have to make additional changes before it will work.  It is possible
    that it won't work at all.  Most apps support external libraries using either C-style functions or COM.  C-style functions cannot be exposed from managed code so you would need to write the callable function(s) in C/C++.  Using C++/CLI
    you could interop to your managed code but LabView would still be working with the unmanaged C++ code.  For COM you'd have to implement a COM server which requires quite a bit more work.  But this is a completely separate problem from simply
    moving your console app code to a class library and should be asked using a different thread.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • Thrid party application wont delete in trash- comes back

    i have downloaded a thrid party applciation named 4easy dvd ripper; the free version . I tried to get rid of it by droping in into the trash but not all files deleted.. I had to search for every single file that went with it ... The problem is that the actul application that opens up the download box wont erase from my mac. It comes back evry time i place it in the trash.. the trash will take the .dmg application but once i try to delete form the trash it pop back to Doenloads. How can i get rid of thing .. please help

    I think i found a solution ... I had to use the secure empty trash option under finder to completely erase it off otherwise if you try to empty the trash using the regular "empty trash" option the item would disappear from trash and would come back to the mac download folder agian ! ... Thanks for the advice though.

  • Deploying third party dll from solution

    Hi,
    I am creating a visual webpart in which i have added the Telerik RadGrid.
    I have added the Telerik.web.UI dll in the Reference and is refered from the GAC. I have build the solution and grid works fine in my local dev environment.
    I would like to know how to package the solution, so that the third party dll is also added to the GAC and to the safe controls.
    How to achieve this? If possible, please elaborate the steps.
    Thanks

    Hi Mahindrakar,
    I have used the right name of the dll in my code. I didn't understand, what you are saying about readme file ?
    I getting the following error with
    Stack Trace:
    [NullReferenceException: Object reference not set to an instance of an object.]
    Certification.VisualWebPart1.VisualWebPart1UserControl.Page_Load(Object sender, EventArgs e) +187
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
    System.Web.UI.Control.OnLoad(EventArgs e) +131
    System.Web.UI.Control.LoadRecursive() +65
    System.Web.UI.Control.AddedControl(Control control, Int32 index) +349
    Certification.VisualWebPart1.VisualWebPart1.CreateChildControls() +154
    System.Web.UI.Control.EnsureChildControls() +145
    System.Web.UI.Control.PreRenderRecursiveInternal() +60
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Control.PreRenderRecursiveInternal() +223
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3393
    One thing, i know very well, only problem in adding reference only.
    The above thing may helpful for you, giving me solution.
    Thanks
    Aasai.

  • After Effects can't find AfterFXLib.dll file and crash on start up

    PLease help.
    After Effects crash on start up giving a message that the file AfterFXLib.dll is missing.
    I searched for that file in the provided location and found it there.!!!
    Why AE doesn't recognise it?
    What shall I do?

    Without system information, nobody can tel lyou anything. DLLs not being loaded could depend on amillion factors from a broken install to security tools blocking functions to third-party DLLs referenced by the specific DLL not being on your system. As a start, simply reinstall the program. For anything beyond that, we need some serious technical facts.
    Mylenium

  • Content Server 6.40 Presents a Save As dialog for ContentServer.dll file

    hi All
    we have installed successfully the content server 6.40 on a windows 2008 with iis 7 environment. The installation wen successfully with no errors. however when we run a test by calling the URL http://<server>:<port>/ContentServer/ContentServer.dll?serverInfo URL, instead of getting a response, we are getting a save as file dialog to save the dll file.   Also, after the installation, even with the install website tick checked, the website was not installed. we had to do the installation of the website manually for the port.
    With content server 620 on windows 2000 this was never the case
    if anywone has an idea on how to resolve the issue, please advice
    Regards
    Ronny

    GOT the Solution
    to anyone else who could be going through the same issue, see if the solution below solves your issue
    The website should get created if all the roles in IIS 7.0 are installed. Therefore, please try to install the IIS 7.0 by selecting
    all the roles followed by installation of the SAP Content Server. By doing so, websites should be created automatically.
    In the IIS 7.0, all the roles are not selected during the installation by default. Please make sure all the below roles are included and IIS 7.0 is installed, as per the installation manual for the Content Server on Windows 2008:
    Roles needed in IIS 7.0.
    Common HTTP Features
    Static Content
    Default Document
    Directory Browsing
    HTTP Errors
    HTTP Redirection
    Application Development
    ISAPI Extensions
    ISAPI Filters
    Health and Diagnostics
    HTTP Logging
    Logging Tools
    Request Monitor
    Tracing
    Custom Logging
    ODBC Logging
    Security
    Basic Authentication
    Windows Authentication
    Request Filtering
    Note : Anonymous Authentication should be enabled which is done by
    default.
    Performance
    Static content Compression
    Dynamic Content Compression
    Management Tools
    IIS Management Console
    IIS Management Scripts and Tools
    Management Service
    IIS 6 Management Compatibility
    IIS 6 Metabase compatibility
    IIS 6 WMI Compatibility
    IIS 6 Scripting Tools
    IIS 6 Management Console
    I hope it helps someone!

Maybe you are looking for