How do I set a path in an executable for a DLL?

I wrote a VI that is using a DLL in the Call Function Library Node. I set the parameters to Specify Path In Program in the node. I did this because I am distributing the VI as an executable and the path is obviously not the same as my VI. When running the VI I am using the Current VIs path, Strip Path, and then Build Path to get the directory for the DLL I am calling. It works fine for the VI. Where my problem lies is when I run it as an executable the filename.exe is being used in the build path and the DLL is then not being found. Is there a reason the .exe is acting different than the VI? What would a good solution be to fix this problem? Thanks in advance for any help.

There's a perfectly good reason and this question gets asked about once a week from people new to the app builder. When you use the current VI's path in the development system, the path might be c:\folder\example.vi. When in a exe or dll, the path to the current VI is c:\folder\program.dll\example.vi. You need an extra strip path. You make it work in both development and the dll by using reading the App.Kind property and wiring the output to a case statement. Put the extra strip path in the run-time case.

Similar Messages

  • How can i set a path for my deployment files in weblogic server 10.3

    Hi
    How can i set the path for my WAR ,JAR files while deploying.i am using the wls10.3 version.
    is there any scripts for this ,please provide me.
    my Application is ADF 11g application.

    By "path", I assume you mean "classpath".
    The simplest way is simply to include the jars you need inside the web application or web module's WEB-INF/lib directory, EJB module's META-INF/lib directory, or EAR lib directory.
    If that's not practical, if you use NodeManager to start your servers, you can go to the "Server Start" tab in the server definition in the WebLogic console and edit the "Classpath" field, which defaults to no value. You can specify a classpath value there. Note that if you specify a value there, it REPLACES the default classpath for the server, it doesn't add to it. If you need to just add to it (a much more likely scenario), if the value references the value "$CLASSPATH" in it, that will reference the original classpath value that the server would have had.
    So, for instance, if you wanted to include the MQ jars in the server classpath, you could set a value like this:
    /usr/java/mq/lib/mq.jar:/usr/java/mq/lib/mqstuff.jar:$CLASSPATH

  • How do I set execution path in VAPI-XP-TEST?

    Hi,
       I have created a VAPI-XP-TEST which calls my project's executable from it's Debug folder.
    I am setting the path of the executable via Parameters.
    My project has a configuration file which reads from some input files. I have given the relative path of the files in the configuration.
    The relative path reads as ..//..//Input
    So, the test needs to go 2 levels back from the "Debug" folder and get the contents of the "Input" folder.
    My project runs fine as is.
    However, when I hook up this exe to a VAPI-XP-TEST, the relative path accesses the install location of ALM instead of my Project's debug folder. Hence, the test fails as it is unable to find the Input folder.
    How can I specify in my test script or through a setting, to take the path as my project's debug folder?
    I have tried the following command just before I trigger the XTools.Run command, but it did not work.
    Directory.SetCurrentDirectory(path)  - where path is the path to my project's Debug folder.
    Please help!

    No, that's not quite what our friend Apple Certified was saying. In summary (from someone who has ballsed this exercise up a few times now):
    1. Move your apple loops folder to the external drive. You'll then need to open logic and drag the loops folder on to the loops browser to make it re-index them.
    2. You can move the EXS samples to the ext drive as suggested via the use of aliases. Do NOT move the sample instruments folder.
    3. You can move the projects and related audio files to an external hard drive if you wish.
    4. Be careful moving garage band instruments. You can move them in the same way you moved the EXS sounds, except for the Hybrid synthesizers. If you move them you'll have trouble later.
    I'm sure someone will correct me if I've mis-stated anything, but from my experience those are the main points to focus on. Hope that helps.

  • How can i set class path in ubuntu JAVA_HOME ?

    how can i set class path in ubuntu <JAVA_HOME>?

    Note that on *nix
    environment variable names are case sensitive.
    Also, you are again being vague; is it [this it|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html] or [that it|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html]

  • How do I set up an indicator to display for only 1 second?

    How do I set up an indicator to display for only 1 second?
    I am reading keys from a serial device and I turn on an indicator that corresponds to the key pressed
    on the serial device but how do I set this up so that it only stays lit (enabled) for a second or two?
    The indicator is inside of a case statement and turns on OK but I do not want it to stay on for more than
    a second or two. How do I modify this to display for only a second or two?
     (P.S. I am running an old version 8.2 and can only see vis that are 8.2 or older.)
    thanks

    Simplest way to turn the indicator off (false value) after a set time is to use a Sequence structure (flat or stacked).
    Frame 1, set to true,
    Frame 2, Wait ms (wire millisecond value to wait)
    Frame 3, set to false.
    This method, however, prevents the code outside the case structure from running during that wait time.  
    Something more elaborate will allow the external code to run.  What comes to mind is a shift register that holds the indicator name and the time stamp (in milliseconds) when it was turned on, in an array of clusters.  Each iteration of your loop will check this register to see if a certain time has passed (current time stamp minus turn on time).  If so, use a case structure to turn the indicator off and remove the elements from the shift register array (so you don't keep setting the indicator to false).  The array will let you control multiple indicators independently.
    A problem with this option could arise from multiple readings.  Lets say you want to turn it off after 2 seconds, but you read the value again after 1 second (this means the indicator should be on for a total of 3).  The code would still turn it off after the 2 second mark.  Of course this really depends on the time intervals involved with your code.

  • How do I set up a different email address for HPePrint

    how do I set up a different email address for HPePrint

    @poloacuna
    At this time you cannot reassign printer email addresses.  Also, keep in mind If you delete a printer email address then you will not be able to use that same email address again for six months.  

  • I have justed upgraded CS2 to CS5. How do I set artboard crop or trim marks for printing?

    I have justed upgraded CS2 to CS5. How do I set artboard crop or trim marks for printing?  It was under the "OBJECTS" menu in CS2, but I can't find it in CS5.

    it actually works the same way but better you don't see it that way but with perhaps more experience you might catch on and say "oh now I see that' all I have to do.
    Multiple artboards, which you did not have in CS 2 , changes the equation.
    When you open a new document you can set up a gangup in the new document dialog then say for a business card then do one business card in the first one.
    Then copy the art and text of that first one and in one command paste that art in all of the artboards with one command, you can then make another artboard that encompasses all the artboards and you now have a gang up say six up you can now print all a once as a gang up or print a range of the artboards or specific artboards.
    As a matter of fact now that you can paste on all artboards with one command AI CS 5 actually has a step and repeat feature that works verticaly and horizontally at the same time. And an improved version is easily had.
    Also since you probably know how many you need of this first artboard then you can simply make one rectangle for for the first artboard and give it a crop area effect and when you do your copy include the rectangle and then paste on all artboards and there you are
    look at the video, see how cool. less complicated not more complicated. And as other users explore this function I bet they come up with even better ideas.
    http://mysite.verizon.net/wzphoto/Artboards.mov
    I am going to make one adjustment here instead of doing a command c to copy the first artboard it would be better to do a command x to cut the first one since the command paste on all artboard does exactly that. So if you do a command c and a command option shift v then you have two rectangles and art and crop marks pasted on top of each other. Probably won't do any harm but might be confusing in the layers panel.

  • How I can set the spelling language in Pages for iPad?

    how I can set the spelling language in Pages for iPad? may for german...

    how I can set the spelling check to other language in Papers/iPad?
    The only choices you have in the iPad itself are to change the keyboard or change the user interface language. If that doesn't do what you want, probably best ask the people who make Papers.

  • How do I set up a new apple id for my sister while still keeping all my music on her ipod touch?

    How do I set up a new apple id for my sister while still keeping all my music on her ipod touch?

    Just create and new ID
    Frequently Asked Questions About Apple ID
    To use that ID on the iPod go to Settings>Store and sign our and sign back in.

  • How can I set the maximum number of restarts for my PDF files?

    I want sent my PDF to a friend,but I just allow him see it only twice.
    How can I set the maximum number of restarts for my PDF files?
    My software edition is Acrobat X

    In the old days when PDFs were only opened on desktops and only in Acrobat or Reader, scripting could fake security features and people were generally convinced. As there are so many ways to open a PDF without scripts ever being run (from mobile devices to in-browser display, or simply opening the file in Illustrator), none of that works anymore.

  • How do I set the shortcut to space bar for the hand tool in illustrator cc?

    How do I set the shortcut to space bar for the hand tool in illustrator cc?

    Thanks Larry, Mavericks OS. I managed to fix it by quitting Illustrator and reopening it. I have no idea why there was a problem in the first place, it just stopped working with the space bar shortcut and replaced it with a random alphabet.

  • How can I set the number of batch process for DTP globally?

    Hi guys,
    How can I set the number of batch process for DTP in system globally?
    For eg. set the number to 1
    Any hint is appriciated!
    Regards,
    Liying

    Hi,
    In DTP screen also you can view batch settings. Check the Settings menu, you will find Batch.
    Reg
    Pra

  • HT201209 I am ebook retailer. How do I set up a redemption/discount code for my ebook?

    I am ebook retailer. How do I set up a redemption/discount code for my ebook?
    I would like offer limited discounts on limited quantities.

    Unless it's a textbook or other book eligible for Apple's Volume Purchase Program for educational institutions, I don't believe you can, but you can contact Apple and ask.
    [email protected]
    Regards.

  • How to c heck if exicse invoice is executed for performa invoice ,

    how to c heck if exicse invoice is executed for performa invoice , cos u cannot see the excise invoice in doc flow where exactly can i see the excise num against the proforma,,, pls help

    Hi,
    Go to J1IIN->Excise Invoice>Change
    Select Alternate Selection-->Enter the Billing Document and Press Document Flow..
    Here u can see the full document flow
    Thanks,
    Sam

  • How do I set the PATH to use ImageMagick under PHP on my Server?

    Hi,
    I have the ImageMagick binaries installed. They are working in the terminal.
    But when I try to use it out of a php script on the webserver, it cant find the DYLD_LIBRARY_PATH.
    The manual says:
    Set the MAGICK_HOME environment variable to the path where you extracted the ImageMagick files. For example:
    export MAGICK_HOME="$HOME/ImageMagick-6.3.7"
    If the bin subdirectory of the extracted package is not already in your executable search path, add it to your PATH environment variable. For example:
    export PATH="$MAGICK_HOME/bin:$PATH"
    Set the DYLD_LIBRARY_PATH environment variable:
    export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
    I can do all this in the Terminal, but how and where do I set it, that it also works with the scripts on the webserver?
    Thanks and Regards,
    JO

    Joachim,
    I have not tested any of this but...
    If you are just using the default Mac OS X Server install of Apache and the PHP module, then Apache's path is /usr/bin:/bin:/usr/sbin:/sbin (when running under the user:group=www:www). Basically, if the server is running under that user and PHP inherits the basic PATH of that user's shell, then anything linked into those directories should be available to the scripts, i.e. link your ImagMagick bin and lib paths into /usr 's directories. See 'man ln' in Terminal. User www doesn't have a defined shell, though, so I don't know where the PATH comes from.
    Alternatively, you might be able to use Apache's env_module (on by default) to manipulate the PATH environment variable in a config file. See Apache's manual on environment variables.
    Another means is to utilize 'suexec' in Apache and switch the user:group of CGI execution, etc. to a actual user with a definable .bash_profile (or whatever shell you are using). There are security concerns with this. See Apache's manual on suexec. You may want to also consider compiling PHP as CGI.
    BTW: the new version of PHP has some new experimental native ImageMagick libraries built in. I assume it looks for the binaries in the usual places and/or may need to be compiled with their paths during ./configure.
    Larry

Maybe you are looking for

  • Summary SQL*LDR log file

    Hi, I need to get only a summary log file that show me records by error. for example if the log file has 5000 error for datatype and 300 for PK violation and 2000 for not null value, the problem that the log will show me this error row by row. can I

  • Mail integration doesn't work - users can't sign up

    I've followed the instructions for the mail and calendar integration from the /opt/SUNWam/samples/integration folder. When users sign themselves up however, they still don't get access to mai. From the Sun ONE Console, an admin can click the 'mail ac

  • Linking my BTVision box to new Samsung Smart TV

    I bought a Samsung Smart TV 6000 series yesterday and have put the areial into the tv for tuning to take advantage of the Freeview HD. I have connected the BTVision box to the tv via HDMI - how do I record programs from the TV ??

  • Palm TX on windows 8

    Hi  everyone, and Happy New,now to the subject at hand,  I brought a new computer, with window 8 and could not get my palm to sync, well thanks to WyreNut and others on this forum, I was able to download a new driver from Aceeca, which my palm found,

  • Downloading new services

    The first Mac I bought for my regular use came with Leopard.  I've upgraded along the way and now have Mountain Lion. I noticed the menu entry called Services, but never took the time to investigate them. Then I learned about "The Automator" (sorry,