Including a dependent dll in an executable

I am creating an executable on my windows development system (LV2011) and want to run it on one of my windows target systems, which has the appropriate runtime engine (2011) installed.
In general I usually don't have problems running executables on this target, but in this case the executable on the target system generates an error because of a missing dll (NiFpgaLv.dll).
I can see no way to make the build script include this dll (which is listed as a dependency on my development computer and works fine running on it.
This executable on the windows target is designed to interface with a desktop RT system containing a PCIe-7852, hence the NiFpgaLv.dll dependency.
Once I get past this problem, I am sure I will run into problems loading up the FPGA bitfile from the target computer.
I think my question is: Is there a procedure for deploying an executable to a windows target machine that will control a desktop RT machine containing an FPGA board (PCIe-7852).
Rick Foster
MIT Kavli Institute for Astrophysics and Space Research
Solved!
Go to Solution.

Someone at NI needs to train their service people not to post links that point to ae.natinst.com, since that's an internal NI server not available externally and this happens frequently.  You can usually get the same KB article by copying the document number from the end of the URL and then appending it to http://digital.ni.com/public.nsf/allkb/.  In this case, the article you want is http://digital.ni.com/public.nsf/allkb/17EA4DD6AAE​CD50A862570A7004B6146

Similar Messages

  • Loading assemblies using Reflection when dependant dlls are missing.

    Hello All,
    I've created a sample WinForms application where I upload a dll (present in my local machine).
    I just need to read the public types (classes) defined in the assembly. So I've used the ExportedTypes property.
    When the dependant dlls are present in my machine, I'm able to read the public types of the assembly using the ExportedTypes property.But when the dependant dlls are not available in my machine, I get the following error:
    "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
    Please let me know how to overcome this problem even when the dependant dlls are missing.
    NOTE: When the same dll, is looked upon using  ILDASM.exe we are able to view its classes, even when the dependant dlls are not present.
    Thanks, Satish Bommideni "Success usually comes to those who are too busy to be looking for it."

    Hi Darin,
    Thanks again.!!
    I'm having trouble reading a COM dll.
    I'm using following code  and using the LoadTypeLib method to fetch the dlls ITypeLib.
    [DllImport("oleaut32.dll", CharSet = CharSet.Unicode, PreserveSig = false)]
            static extern ITypeLib LoadTypeLib(string szFile);
    I'm able to get the classes/ProgIds. But I need to fetch only those classes which implement a particular interface. I tried using the following code to fetch the implemented interface, but its not successful for the case where multiple classes implementing
    that interface
    var typeLibrary = LoadTypeLib(openFileDialog1.FileName);
    int typeCount = typeLibrary.GetTypeInfoCount();
    for (int i = 0; i < typeCount; i++)
    System.Runtime.InteropServices.ComTypes.TYPEKIND TKind;
    System.Runtime.InteropServices.ComTypes.IMPLTYPEFLAGS implInterface;
    typeLibrary.GetTypeInfoType(i, out TKind);
    if (TKind == System.Runtime.InteropServices.ComTypes.TYPEKIND.TKIND_COCLASS)
    Type objType = typeLibrary.GetType();
    Type objInterface = objType.GetInterface("IMyInterface", true);
    try
     obj.GetImplTypeFlags(i, out Interfa);
    Thanks, Satish Bommideni "Success usually comes to those who are too busy to be looking for it."

  • Including a jar file inside an executable jar file

    Is it possible to include a jar file inside another (executable) jar file such that the included file is part of the class path for the outer file? If so, how do you specify this in the classpath in the manifest?

    Russ_Bjork wrote:
    Is it possible to include a jar file inside another (executable) jar file such that the included file is part of the class path for the outer file?No. Actually, I suppose it would be possible if you do all the 'heavy lifting', but Java is not designed to handle Jars within Jars.
    What do you see as the advantage of doing that?
    Is your app. a rich client (e.g. Swing, AWT, SWT..)?
    Can you distribute the app. from a server or the internet?

  • How to instruct Acrobat to search for dependent DLLs in plugins subfolder

    My plugin has a few DLL dependencies that cannot be located using the standard windows location, and I am not able to statically link them at present.  Acrobat can quite happily load dependent DLLs that are located in the plugins folder, but not so in sub-folders from the plugins folder.  This seems a little strange, as I can put my plugin dll (.api) in there and Acrobat can load it from there.  How do I resolve this situation?  Is there a way (without altering the windows path) to have Acrobat look for dependent DLLs in the plugin subfolders where the .api is located?  I guess I could convert everything to loadlib, but I'd really prefer not to.
    Thanks
    Simon

    Hi
    If it's greyed out, either the plug-in is missing, the preference file is possibly corrupt, or this is another example of how Adobe expresses its version of "creativity" on the Mac platform.
    Tongue-in-cheek aside, I don't have CS3, so I can only speculate here. Other than the possible missing plug-in, or preference file corruption, I wonder if installing Adobe Reader frees up the greyed area via Reader's preference file?

  • How do i wrap a dll inside an executable jar

    hi,
    i have an executable jar that uses jni to reference native code in a dll.
    i can launch the executable jar only if the dll is in the same directory as the jar (or in system32).
    so, i figured if i added the dll to the jar it would work. no!
    what do i do to deploy only 1 executable jar?
    thanks

    Hi anonimuds,
    I see useless &ldquo;expert&rdquo; activities here instead of giving a real response!
    You can pack a native library with bytecode if you use WebStart technology. Let look at the example tested by me. It shows Windows MessageBox from the native method.
    Here is Java class HellowWorld:
    package test;
    public class HellowWorld {
    static {
    System.loadLibrary("HellowWorld");
    public static void main(String[] args) {
    DoHellow();
    public static native void DoHellow();
    }With javah I generated C++ header:
    /* DO NOT EDIT THIS FILE - it is machine generated */*
    *#include <jni.h>*
    */* Header for class test_HellowWorld */*
    *#ifndef _Included_test_HellowWorld*
    *#define _Included_test_HellowWorld*
    *#ifdef __cplusplus*
    *extern "C" {*
    *#endif*
    * Class: test_HellowWorld
    * Method: DoHellow
    * Signature: ()V
    JNIEXPORT void JNICALL Java_test_HellowWorld_DoHellow
    (JNIEnv *, jclass);
    #ifdef __cplusplus
    #endif
    #endifWith MS Visual Studio I made a simple library with the native method implementation:
    #include "stdafx.h"
    #include "test_HellowWorld.h"
    BOOL APIENTRY DllMain( HANDLE hModule,
    DWORD ul_reason_for_call,
    LPVOID lpReserved
    return TRUE;
    JNIEXPORT void JNICALL Java_test_HellowWorld_DoHellow(JNIEnv *, jclass)
    MessageBox(0, "Hellow World!", "Message", MB_OK);
    }I compiled Java code above to test.HellowWorld.class and JNI code to HellowWorld.dll.
    Then I packed bytecode and DLL to HellowWorld.jar with batch file:
    %java_home%\bin\jar cvmf MANIFEST.MF HellowWorld.jar test/HellowWorld.class ./HellowWorld.dll
    %java_home%\bin\keytool -genkey -v -alias vitaly -keystore OlejaKeystore -storepass MyStore -keypass Caretta
    %java_home%\bin\jarsigner -keystore OlejaKeystore -storepass MyStore -keypass Caretta HellowWorld.jar vitallyWhere content of MANIFEST.MF is
    Manifest-Version: 1.0
    Created-By: 1.4.2_12 (Sun Microsystems Inc.)
    Main-Class: test.HelloWorldBefore deploying the project to Intranet Site I prepared JNLP and HTML files.
    The content of HellowWorld.jnlp file is
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="http://vitallis/HellowWorld">
    <information>
    <title>HellowWorld Example</title>
    <vendor>ABC Ltd</vendor>
    <homepage href="HellowWorld.html"/>
    <description>JNI Test</description>
    <description kind="short">JNI Test</description>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se"/>
    <j2se version="1.3+"/>
    <jar href="HellowWorld.jar" main="true" download="eager"/>
    </resources>
    <resources os="Windows">
    <nativelib href="HellowWorld.jar" download="eager"/>
    </resources>
    <application-desc main-class="test.HellowWorld"/>
    </jnlp>The codebase value you will change to URL of your Site. And at the last, here is HellowWorld.html text
    <html>
    <head>
    <title>Java Web Start Example</title>
    </head>
    <body>
    <P>Java Web Start Example:</P>
    <P>
    <a href="HellowWorld.jnlp">JNI Example</a>
    </body>
    </html>I have tested this project on my computer and it runs fine.

  • Include uri in dll

    I am running a LabView executable which calls a DLL created in LabWindows/CVI.  I get an error message when it tries to call PanelFunc (one of the GUI callback functions) that the dll is missing the .uri.  How do I include a .uri when I create the .dll?
    Thanks!
    Solved!
    Go to Solution.

    Hi again,
    in CVI you must use LoadPanelEx with a valid calling module handle to load an embedded UIR file, not the regular LoadPanel, see e.g. here.

  • Missing DLL error in executable

    I am getting the messages shown below in my executable. But, the strange thing is, it doesn't happen on my computer or my coworkers computer, but happens on the customer's computer. The coworker who installed it did not work on the project at all so there is no chance the dll was being pulled from somewhere else on his computer. I have also set the DLL to always included, and it is in the data directory on the customers PC. Any thoughts?
    CLA, LabVIEW Versions 2010-2013
    Solved!
    Go to Solution.
    Attachments:
    dll error.PNG ‏46 KB

    I installed on a coworkers computer who does not have LabVIEW and found the cvirte.dll is missing. I believe this is the problem but will reply back when I am sure.
    CLA, LabVIEW Versions 2010-2013

  • Running a model dll as an executable on a Windows computer (Error 1013)

    I have a Simulink model that I am trying to make into an RT executable with a GUI to be run in Windows.  The model was made with R2007b+, and I am using SIT 5.0 and Labview 8.6.  Through Real Time Workshop I created an NI dll.
    I created a VI and ran the SIT connections manager to link the VI to some constant blocks in my model that I wanted to be able to change the values in.  This was done selecting the Driver VI on Localhost option.  I then built an exe using my interface VI and the driver VI that was generated.
    When I run the exe I press play in the model controls box that was generated.  When I try this I get an Error 1013 occurred at Driver VI: Possible reason: LabView:  Cannot load front panel.
    My questions are is what I am trying to do feasible: (as far as making an executable that I can run on a Windows computer in real time with a Labview GUI that allows me to change parameters)?
    If this is feasible, am I going about it in the right way?  If I am, how do I work around this error?
    Thanks.

    When running the host interface VI as an executable you must start the driver VI manually.  The code that starts the driver VI automotically assumes that the LV project is available.  However the host interface VI will attempt to connect to a running simulation first.  If it fails to connect to the SIT Server, it assumes the driver VI is not running and tries to start it.  There fore if you make sure the driver VI is runing before you start the host interface it will work.
    There are a number of ways to start the driver VI before the host interface VI.  If you have LV available you can open the driver project and open the driver VI and run it.  Since your host interface is an executable you presumably don't have LV available, so this is probably not an option.  If the driver VI is also running on Windows, you can either build an executable of just the driver VI and run the executable or you can add the driver VI to the host interface VI such that it executes in parallel to the host interfac code.  If you are including the driver VI as a subVI of the host interface VI you will want a small delay before the host interface code starts executing to ensure that the driver VI has been able to start the SIT Server.  If on the other hand your driver VI is running on an RT target, then you will want to build it into a startup executable on the RT target (see third link in Kyle's post).
    Carl L
    National Instruments

  • How to include a Plugin (dll file) in a program

    How would I go about utilizing a plugin in my program. By this I mean...lets say that there is an online program for which you have to install the plugin onto your computer in order to use the program. How could I include that plugin into a program that can be used offline, or placed into an online applet, so that other people dont have to download that plugin.
    Basically...I want to know how to put a plugin into my program so that no one else has to download it. Instead they just use the program, which includes the plugin.
    And just so you all know, the plugin is a *.dll file. Could I just put it in an online folder, and cal to it when it is needed??
    Thanks in advance.

    I apologize, but I am confused because I am not that good at this. How would I refer to it? I do not know how to write a java function so that it will call a .dll file. Also, Im not quite sure what to do when I do call it. Here is specifically what I am trying to do. The plugin that I am trying to use is a download plugin. It is used because some people use a program to upload/protect their files, and the only way to download the files is to use the plugin or the program. The thing that I am confused about is how I use the plugin in my program so that the website I want to download from sees that I have the plugin and allows me to download the files I want by using the plugin which I have stored online. Im sure that the website that I am downloading from checks to see if I have the plugin installed, so how do I make it look at the one that I have online and not search for it on my computer??? PLEASE HELP ME!!! i know that people do things like this all the time, but I am new and need a lot of help.

  • Including External LVOOP Public Methods in Executable

    Hello,
    I have an application which on the top level must 'talk' to several different instruments; a LabJack UE9 (USB) , a Newport Motion Controller (USB-Serial), etc.    When I wrote the drivers for these instruments in LV, I used the LVOOP functionality and created individual Classes with public methods for each of the different devices I need to communicate with.  Sounds logical to me, anyway. 
    In my top-level application, I call the public methods (and must include local instances of the LVOOP classes) for those independant instrument-specific classes.  In the development mode, everything works peachy.   However, when I go to build the application executable (build), I get some weird behavior;
    Firstly, with the default setting in 'Additional Exclusions' in the Build Properties of 'Remove as much as possible', I get errors when the builder gets to my independent classes.  I get the message:
    "An error occurred while building the following file:
    C:\Documents and Settings\Wes Ramm\My Documents\Projects\RDT\LabJack\Class\Common Methods\Get DO Line State.vi
    The VI became broken after disconnecting type definitions. Open the Build Specification and choose a different option on the Additional Exclusions page."
    Ok, it seems that the class object is not linking, but I can get around that by selecting the second option in 'Additional Exclusions' ; 'Remove unreferenced project library members'.  BUT, when the build is done, I get a couple of subdirectories with vi's named for all the different class methods for each independent that I am calling.  There is no front panel or block diagram for the vis, so it looks like they are correctly 'included' in the build, but it seems cumbersome to include these subdirectories.
    I even tried to 'add' the independant classes to the project by 'Add Folder', but got the same behavior. 
    The classes that I made are not a part of the top level VI, and the top Leve VI is not a member of any of the classes, so this I think is the crux of the matter.  However, I am instantiating only the public methods, and the problems only pop up when I try to build the executable.
    Am I missing something?  Is there a more elegant way to do this?  Any advise / tutorials / knowledgebase articles you can point me to?
    The tree for the directory structure for my build looks like this (for reference)
    \\Application Directory\
                             Executable
                             \Config
                                      \ Class One.lvclass  (first external class that I am calling in my top-level vi)
                                          \ Method 1
                                          \ Method 2
                                          \ Method 3
                                           \ etc
                                      \ Class Two.lvclass
                                            \Method 1
                                            \Method 2
                                            \Method 3
                                            \ etc
    Thanks,
    Wes Ramm
    Wes Ramm, Cyth UK
    CLD, CPLI

    Hello Wes Ramm,
    It's better late than never! Hence I'm going to address some of the issues that you've brought up.
    1) Which version of LabVIEW are you using? LabVIEW 8.5 has fixed a lot of issues that occured between the Application Builder and LV Classes. If you were using LV 8.2, I would suggest changing to LV 8.5 or at least LV 8.2.1
    2) Apart from setting "Do not disconnect type definitions or remove unreferenced members" in the Additional Exclusions page, I would suggest also checking the box against "Enable Debugging" on the Advanced Page.
    The following forum post has discussed many of the problems that have come up when building an executable which uses LVOOP classes. Hope this helps.

  • How to include style SWF in windows native executable using ADT command

    down vote  favorite   
    'adt -package -target native MyApp.exe MyApp.air' successfully creates a Windows executable.
    Need to include a style sheet in the MyApp.exe. Its in the style sub-directory.
    When I use 'adt -package -target native MyApp.exe MyApp.air style\blue.swf' get the error:
    Signing options required to package from descriptor and fileset.
    What is the syntax to include style\blue.swf in the MyApp.exe? Thanks in advance.

    Well whenever I publish AIR apps from Flash CS5 Pro if I have the filename property set to "myApp" for example in the dialog box . . . then the program gets published and when you install it "myApp" appears in the Program List as well as optionally in the Desktop Shortcut.  I am running on a Windows Machine.  I am not sure if this same behavior mirrors itself on Mac or Linux although AIR is designed to be coded once and deployed anywhere.  If you have found the filename property in brackets that you mention in Flash Builder are you certain that it is not appearing in your Program List?  Perhaps it will appear simply as a shortcut without being in a Folder if you do not specify a path for the shortcut to go to?

  • Include file for .dlls

    I have bought a power supply with an RS232 computer interface. The
    software consists in a .dll and a .lib files (32-bit, written in C or
    C++). I don't know how to write the include file to link my LabWindows/CVI
    project to the libraries...
    In the .dll I've functions defined like: int configcom (int Comport)
    I hope you can help me!
    Caterina Ducati

    That is very strange. A header file should always be provided with a DLL in order to program with it. Sometimes an import library (.lib) is not provided and CVI can generate on of those for you from the header file, but it can't generate a header file from a DLL or LIB. You really should contact the company that provided you the power supply and get a header file from them.
    You can find out the function names in the DLL, but I know of no way to rebuild the header since you will not have the argument lists.
    Best Regards,
    Chris Matthews
    National Instruments

  • JVM does load DLL within JAR executable

    Hi,
    I'm not sure the following problem is related to this forum but...
    I have problem to load native code (DLL) by running executabe JAR file(created by JBuilder 9).
    The program runs fine within JBuilder & Eclipse compilers.
    When run the EXE an error says "JVM cannot load the DLL" in java library path.
    I have tried without succes:
    1. Loading dll in main function: [System.load() & System.loadlibrary()].
    2. Running JVM with parameter: -Djava.library.path=<DLL path>
    * running the class with "java" application works fine as well.
    Any ideas?
    Thanks,
    AST

    I extract the DLL file to working directory if necessary, also the DLL is stored in System32 & working directories (the directories are part of Java library path).
    Normally,the DLL is loaded by external package that embedded to program, could it be that executable JAR blocks access to native code?
    Thanks,
    AST

  • Intégration d'une DLL dans un executable

    Bonjour,
    c'est une question qui je sais à déjà été posée, cependant les réponses ne m'ont pas aidé à résoudre mon problème.
    J'ai un dossier comprenant un .vi un projet et une .dll. Le projet contient ce .vi qui fait appel à cette .dll.
    Lorsque je l'execute sur mon PC, pas de souci, tout fonctionne. 
    Je souhaite en faire une application .exe avec le builder. 
    Ma .dll n'apparait pas dans l'explorateur de projet onglet dépendance/.vi.lib
    Du coup, lorsque je l'execute sur un autre PC, cela ne fonctionne pas.
    Quelles sont les étapes pour inclure la .dll dans le projet puis dans l'application.
    Bien à vous.

    Bonjour,
    Pour que ta dll puisse apparaitre, tu peux faire un clic droit sur Poste de travail dans ton projet LabVIEW et Ajouter >> Fichier, ou bien un faire un glisser-déposer.
    Best Practices for Managing NI LabVIEW Applications Using the Project Explorer
    J'espère que cela répond à ta question,
    Bonne journée,
    M-Junior

  • I have uninstalled and reinstalled the new iTunes but it still will not work.  I keep getting the error mesage relating to MSVCR80.dll, the installation error 7 (windows error 126). I have tried moving and removing the dll files including the QTMovie dll

    I have tried uninstalling and reinstalling iTunes 15 times regarding the latest release and still get the MSVCR80.dll and Error 7 (Windows error 126) messages.
    I have tried moving the dll filesincluding the QTMovie dll file to now avail.  Can anyone please help, as I am sure you all, like me, have thousnads of dollars and songs invested in this system and need a fix fast.  Can anyone please help???

    Dear avid iTunes users - I have cracked it!!!
    The response from Apple/iTunes was extremely poor and did not solve the problem.
    I have a look in msconfig and observed which applications/services were running - one of which was the 'Apple Application Support'
    So ... I had a look at what was in this folder and found the APS Daemon.exe file causing all the trouble.
    So ... I simply deleted the Apple folder found in C:\program files\common files\.
    I did a restart and did not get the MSCVCR80.dll or Error 7 (windows 126) error messages.
    I reinstalled the current version of iTunes (for the 16th time!)
    Hey presto!!!
    IT WORKED :-O Woooohooo!!!
    So ... to all those smarty-pants boffin-brianiacs out there (apple/iTunes): this is how you do it!!!!!!!!!!
    YOU DO NOT NEED TO UNINSTALL ALL THE APPLE/QUICKTIME OR RELATED PROGRAMS - JUST DELETE THE APPLE FOLDER IN THE C:\PROGRAM FILES DIRECTORY.
    Nuff said.

Maybe you are looking for

  • WBS Settlement Strategy

    Dear Experts, Please note that I have implemented SAP Note 211324, but still I am not able to see Account Assignment Category 5 - Superior WBS Element in customizing. http://wiki.sdn.sap.com/wiki/display/PLM/ModificationnoteforStrategyforsettlementto

  • String Parsing using Oracle

    Hello, I am newbe in Oracle SQL.I need help in parsing Strings. Example: ID Name Address num 1 Peter 123 park st,223 park st 123,223 Answer ID Name Address num 1 Peter 123 park st 123 1 Peter 223 Park St 223 Please Help me. Thanks.

  • Creating Worklist attachments and Reciving them

    Hi, I have a user task configured in my process. In that task the user is expected to attach a file, that in turn i need to use as a response to another activity. Wher the task in the worklist is closed, i get all the data in my process, except the f

  • I cannot update my sync my iphone and macbook it keeps saying I need to download OS X v10.6 or better.  I cannot figure out how to do it.

    I cannot update my sync my iphone and macbook it keeps saying I need to download OS X v10.6 or better.  I cannot figure out how to do it.

  • Flash intro using images.. Please Help

    I am trying to create a flash intro like this one.... http://www.mark-knopfler-news.co.uk/ I am really new to flash and don't know much beyond making menus. I have looked at different tutorials, but I don't see anything about how to create an intro l