Don't include kernel32 in my build application

Hi,
I have a application thats also uses calls to kernel32.dll. As I like to distribute it to different versions
of Windows (NT/2000/XP) I don't want Labview to include this DLL in my application.
I've already tried to change the path name in the "Call Libery Function" form C:\Windows\system32\kernel32.dll
to kernel32.dll (without the path). But this doesn't work as LV always restored the complete pathname. Adding
system32 as a libery path doesn't work as well, as LV doesn't allow my to add it as a libery.
Can anybody help my with this problem?
Patrick van den Akker
Philips

Hi,
LabVIEW doesn't include Kernel32.dll when you build an application (unless you included it in the build). LabVIEW will always find Kernel32.dll, even if it is not included, because LabVIEW searches the system path (where kernel32.dll will be).
The path that LabVIEW displays when you configure it doesn't mean this path is fixed. If it is not there, it will search all subdirectories of the exe, the system path and path's added in the system variables.
So, you can use system API's without worrying about them. LabVIEW will find the API. On MS Windows, of course.
Regards,
Wiebe.
"Patrick@Vision" <[email protected]> wrote in message news:[email protected]..
Hi,
&nbsp;
I have a application thats also uses calls to kernel32.dll. As I like to distribute it to different versions
of Windows (NT/2000/XP) I don't want Labview to include this DLL in my application.
&nbsp;
I've already tried to change the&nbsp;path&nbsp;name in&nbsp;the "Call Libery Function"&nbsp;form C:\Windows\system32\kernel32.dll
to kernel32.dll (without the path). But this doesn't work as LV always restored the complete pathname. Adding
system32 as a libery path doesn't work as well, as LV doesn't allow my to add it as a libery.
&nbsp;
Can anybody help my with this problem?
&nbsp;
Patrick van den Akker
Philips

Similar Messages

  • Error when building application with Excel included

    Hi All !
    I've read several post on problems with Report Generation Toolkit when building applications that uses Excel or Word interactivity.
    I've included both _Excel Dynamic VIs.vi and _Word Dynamic VIs.vi in my project and added them to the dynamic vis and support files.
    When building I get the error :
    The VI is broken. Open the VI in LabVIEW and fix the errors.
    C:\Programmer\National Instruments\LabVIEW 8.2\vi.lib\addons\_office\_exclsub.llb\_Excel Dynamic VIs.vi
    When opening that VI there is no broken arrow and all the vi's included in this is not broken either.
    I've tried mass compiling and so on but so far luck.
    Regards Morten Kahr
    Regards Kahr
    Certified LabVIEW Architect
    CIM A/S

    If you do a search on this forum you will find this to be a common and vexing problem. I myself had this same exact problem about a year ago, and it took me the better part of a day to track it down. As you will find by reading the various threads on this problem, there seems to be no specific cause for this, and it remains a mystery, and the solutions are no better than chanting voodoo, and probably just as effective.
    One thing you can try is to force a recompile of your VI hierarchy. Open you top-level VI. If it's set up to run when opened, stop it. Hold down the Control key and click the run button. This will force a recompile of the application. Sometimes this works, sometimes it doesn't. Like I said, voodoo.
    Another thing to look for is to check if you are using any diagram disable structures or case structures with a constant wired, as in trying to use the case structure to comment out code.
    Are you using classes and passing by reference? There was a mention of this here.

  • On iphone 4g 4.3.2 version...my email,safari and the apps applications have started crashing....done everything including the restore...pl help??

    suddenly my email,safari and the apps application have started crashing everytime I open them.I am on iphone 4 and have the latest 4.3.2 software.
    Done everything including the restore......................pl help

    You can transfer your purchases before you start, to make sure all apps and purchased media is part of your iTunes library on your computer.
    All other data which is part of the backup will be missing, see more details about the content here: http://support.apple.com/kb/HT1766
    This article explains how to transfer your other data: http://support.apple.com/kb/HT4137
    If you have corrupt data inside the backup, this is the only way to find out. If the behavior does not change, you can use the backup again to get all your settings back.

  • Why does Build Application vi work in development environment but not in executable; error 1025

    Hello,
    I have an application ("A") that I am trying to build using another application ("BuildA").
    I can create an application for A manually from its project using the Build Specification, and it works fine (A.exe).
    Also, when I run BuildA.vi in the development environment it calls the "Build.vi" correctly and again builds application A.exe just fine.
    Then, when I make BuildA an application (manually) and run BuildA.exe, I would expect it to also create A.exe just like BuildA.vi did in the development environment.
    However, it fails with the error:
    Code: 1025
    Open VI Reference in NI_App_Builder_API.lvlib:Build (path).vi->BuildA.vi<APPEND>
    VI Path: <b>C:\TEMP\AppBuild\BuildA\vi.lib\AppBuilder\BuildTarget.vi</b>
    I noticed this thread , which looks like a similar problem, but no conclusion was reached.
    Why does BuildA.vi work fine in the LabVIEW environment, but the application BuildA.exe does not work?  All paths are hard-coded, so it shouldn't be a path issue.
    Thanks,
    -john
    Solved!
    Go to Solution.
    Attachments:
    AppBuild.zip ‏175 KB

    Interesting code.  I'm curious how you came to decide 324ms in your while loop, and 58 in the other, and then 5136ms at the end.  In any case I suspect this has to do with this line of text in the help of the Build.vi.
    If you plan to run a build specification on the LabVIEW Run-Time Engine, do not include the Build VI in any of the VIs for the build specification.
    I don't fully know what this means but it might be why it isn't working.
    The Build.vi opens all Context (application instances) and then looks for the one named "NI.LV.MxLvProvider".  This I assume is a application instance NI uses to build applications.  It then uses this and opens some other VIs in this instance for the building.  The error you are getting is "Application Reference is invalid" meaning it couldn't find the NI.LV.MxLvProvider instance it needs to build.  Again I believe this maybe because you are in a run-time environment and that instance doesn't exist there.
    At the end of the day I'm guessing since Application Builder is not free, NI probably doesn't include it in the Run-Time engine, which is free.  So you can't build the way you want.  You could have and EXE running in the run-time open an instance in the development, then run your VI from there if you must make this an EXE.  It maybe easier to just edit the BuildA.vi to have a "Run When Opened" so that you double click the VI and it runs which behaves like an EXE sorta.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Building application with microsoft agent

    Can someone clarify if there is anything different that needs to be done while building a stand-alone application that includes VIs that use the MS agent voice VIs (for example MSagentTTS.llb) along with CGI VIs? I have been able to build applications with only CGI VIs but failed while adding MS agent VI functionality. Any help is greatly appreciated.
    -Sheela

    "Belur" wrote in message
    news:[email protected]..
    > Can someone clarify if there is anything different that needs to be
    > done while building a stand-alone application that includes VIs that
    > use the MS agent voice VIs (for example MSagentTTS.llb) along with CGI
    > VIs? I have been able to build applications with only CGI VIs but
    > failed while adding MS agent VI functionality. Any help is greatly
    > appreciated.
    >
    You'll need to install the Microsoft Agent parts on the target computer.
    They are:
    MSAgent.exe - the core components
    actcnc.exe - MS Speech Recognition Engine
    tv_enua.exe - MS Text To Speech engine
    Merlin.exe - or any of the available different voices
    Theses are available for downl
    oad from
    http://www.microsoft.com/msagent/downloads.htm

  • [svn] 3401: don't include frameworks/projects/air/ ApplicationUpdater directory in the package.

    Revision: 3401
    Author: [email protected]
    Date: 2008-09-29 10:54:59 -0700 (Mon, 29 Sep 2008)
    Log Message:
    don't include frameworks/projects/air/ApplicationUpdater directory in the package.
    -trying to reduce bloat the package has incurred
    Modified Paths:
    flex/sdk/trunk/build.xml

    This is only an option on iOS, because IPA structure keeps icons in the "root" of the application. Even then, I shouldn't have to manually overwrite the filenames when the ADT command already knows their correct names and location within the package.
    But on Adroid, this is impossible, because the icons in the APK structure are outside of the "root" of the application. And ADT command does not let me add files outside of the application root.

  • How to include .xml file while building a stand alone applicatio​n .exe file from a Labview program

    HI,
    I have a labview program which loads default values of all the variables from a .xml file when executed.  I am trying to build a standalone '.exe application'  using
    (Tools Menu --> Build Application from VI) , however I am not sure where to include this .xml file in the process?  I really appreciate if some one could let me know.
    Thanks
    Vish

    As GerdW said, it is preferable (and better practice) to use the project explorer. My guess, you didn't configure the build correctly (and probably used the default settings).
    First, you have to specify your xml file as Always included is the source file tab
    Now look at how the build folders are built:
    The .ini file (xml in your case) is in the data folder. So in the build the relative position of the xml file is not the same as in the development environment. You have to be aware of this difference and use a diiferent relative path for the exe. You can do this using a conditional disable symbol in the project and then use the conditional disable structure in your VI.
    Here in the deploy case the exe will look for the file in the data folder and in the development environment it will look in a folder name Files.
    Ben64

  • [svn] 4540: don't include swz files in the flex_sdk_4.zip

    Revision: 4540
    Author: [email protected]
    Date: 2009-01-15 10:14:40 -0800 (Thu, 15 Jan 2009)
    Log Message:
    don't include swz files in the flex_sdk_4.zip
    Modified Paths:
    flex/sdk/trunk/build.xml

    when you have default linkage, flash player first checks if  the framework libraries are in flash player cache if not it dowloads them .. i tried to upload to the  ftp all project files incudling framework libraries and it still doesn't work  .  how can i fix that ?   or there is no way but to merge framework libraries to my swf file

  • Build Application Error

    I am consistently getting an Error 26071 when I try to build my application to make an .EXE.  I am usling LV6.1, and Application Builder for it.  The app. works just fine from within LV itself.  There are no errors.
    Specifically, the error message is "Error 26071 occurred at Build Application.vi >> Dist Call Create Installer.vi >> Win Install Create.vi >> Win Install Add Files.vi >> MSI DK Add Shortcut.vi", with possible reasons stated as "Windows GetCommError:  The hex value if the code us x65D7".
    This code used to build just fine before I added some code using the Winevent.llb library, retrieved from NI.  I had done a mass recompile on it and my code, just in case there was LV version compatibility issues.  I also copied the specific vi's from Winevent into my library and did another mass compile, to no avail.  I am using VISA serial port vi's (the GetCommError made me think this might be related).
    Any ideas on what I'm doing wrong or what I'm missing?
    Jeff

    Check out this knowledge base here and let me know if that helps solve your issue.
    Tyler H.
    National Instruments

  • Problem in build application

    I build application (exe ) for my main VI  but there is main problem if run my main VI in another PC without labview there is problem see figure for explain may problem
    Attachments:
    Mohammad 1.doc ‏552 KB
    moh.doc ‏212 KB

    Creation of an installer will only help you when the "hpe363xa,
    nidmm ,niswitch" drivers are also included.
    Beside an installer you could also install the drivers manually in the PC containing only the LV run-time.
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • Using external llb when building applications

    I would like to be able to update the SubVI's that an executable uses, but am having problems editing them after installation of the build application.
    I am using the option "Small target file with external file for SubVI's" in the application builder, but I don't seem to be able to open the VI's present in the external library ("data.llb") after installation. I get the error message "ressoruce not found", when trying to open the file in LabVIEW. Does anyone know what might be the problem.

    Caveman wrote:
    > I would like to be able to update the SubVI's that an executable uses,
    > but am having problems editing them after installation of the build
    > application.
    >
    > I am using the option "Small target file with external file for
    > SubVI's" in the application builder, but I don't seem to be able to
    > open the VI's present in the external library ("data.llb") after
    > installation. I get the error message "ressoruce not found", when
    > trying to open the file in LabVIEW. Does anyone know what might be the
    > problem.
    Those VIs get just as much stripped of their front panel and diagram
    unless you specifiy not to do that in the VI settings in Application
    Builder. Without front panel you can not load a VI in the LabVIEW
    editor. It is only good for calling
    by reference.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can i include Polymorphic VIs while building an executable?

    Hi,
    am trying include polymorphic Vis while building a stand alone application. It is giving me error. If i use instances of the polymorphic VI instead of using it as library, i am able to build application. is there any way to use the library directly in the process of building stand alone application. Am using LabVIEW 8.0
    Thanks
    Anil

    What are the errors that you are getting? Polymorphic VIs should have no problem in a built application - it would be a major issue if they did because NI makes extensive use of polymorphic VIs in their driver code.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Error 1003 when loading subpanel VI in build application (VI not executable)

    Error 1003 loading subpanel VI in build application (VI not executable). I referenced all supanel VI callers in my build app. What am I missing?

    Thanks for your reply!! I tried a few things I found online including the article you posted...this unfortunately did not solve my problem. Through some trial and error process I found the issue was with my build properties in the advanced section shown below.
    I had to check LabVIEW8.x file layout to allow the subpanel VI to load into my main app. I didn't think to check this cuz my code was developed in version 2010. I'm guesssing some of the callers where originally created in older versions and needed the the LabVIEW8 file layout, even though all my source code is compiled in version 10. If you think I might be wrong on this assumption let me know.
    P

  • Include html page in htmldb application

    Hi,
    How to include an html page in htmldb application?? I have an external html page and I want to include it in my HTMLDB application.
    tks

    Is the parent file named with an *.shtm(l) extension?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "matthew stuart" <[email protected]> wrote
    in message
    news:g7hd6v$e53$[email protected]..
    >I know how to do an include of an HTML page inside an ASP
    page, but I am
    > basically trying to do the same thing with an HTML page
    - that is include
    > HTML
    > within HTML - but it doesn't seem to be working when I
    test in a browser.
    > It
    > displays fine in DW though!
    >
    > The only way to successfully create an include in HTML
    pages seems to be
    > to
    > use the library method.
    >
    > Here is my include code:
    >
    > <!--#include file="../_includes/footer.html" -->
    >
    > Is this wrong for an HTML page?
    >
    > Thanks
    >
    > Mat
    >

  • How to resolve "You don't have permission to use the application" errors?

    We've been struggling with managed preferences, specifically applications, for a few users. They have mobile home folders which live on a Mac OS X 10.6.x Snow Leopard Server AFP server, preferences which are managed (by group) on a Mac OS X 10.6.5 Snow Leopard Server Open Directory Master, and the clients are running Mac OS X 10.6.4 Snow Leopard (bound to the Open Directory Master). There are also two Mac OS X 10.6.4 Snow Leopard Server Open Directory Replicas. We always manage applications and DO NOT sign the apps when adding them in Workgroup Manager.
    Essentially, key applications are unable to run due to the "You don't have permission to use the application" errors, even though they're explicitly whitelisted. (See some prior investigation over on Serverfault.) After seeing that the Mac OS X 10.6.5 Server update included the following fixes, we upgraded our Open Directory Master to 10.6.5:
    * Addresses an issue that could prevent managed preferences from being applied when a user logs in on a workstation that has been idle.
    * Fixes an issue that could prevent administrators from bypassing client management settings on a workstation.
    This seemed to improve the situation slightly, our most important application now seems to be allowed. Occasionally, it'll give the same error, but a simple log out & back in allows it again. We have not upgraded the client workstations with the Mac OS X 10.6.5 update as it doesn't note any related fixes and we haven't fully qualified it for mass deployment.
    We now have two applications that live in ~/Applications which are explicitly whitelisted (again, NOT signed), which fail with the same error, but logging out & back in does not resolve it. `sudo mcxrefresh -n 'user'` doesn't resolve the issue. In fact, `sudo /System/Library/CoreServices/ManagedClient.app/Contents/MacOS/ManagedClient -f -u `id -u 'username'`` fails with the following error:
    ManagedClient- bad parameter to -u option: use format '-u 501'
    Today I was able to catch the following in /var/log/system.log while attempting to run one said applications:
    Dec 22 17:36:24 hostname parentalcontrolsd[43221]: -[ActivityTracker checkApp:csFlags:] [954:user] -- * Incoming app appears to be masquerading as white listed app and failed signature validation: /Users/user/Applications/FileMaker Pro 5.5/FileMaker Pro.app/Contents/MacOS/FileMaker Pro. Note: This may be a valid app of a different version than what was whitelisted (on a different volume?)
    Dec 22 17:36:24 hostname [0x0-0xa42a42].com.filemaker.filemakerpro[43304]: launch of /Users/user/Applications/FileMaker Pro 5.5/FileMaker Pro.app/Contents/MacOS/FileMaker Pro was blocked
    Dec 22 17:36:24 hostname com.apple.launchd.peruser.1340[6375] ([0x0-0xa42a42].com.filemaker.filemakerpro[43304]): Exited with exit code: 255
    Dec 22 17:36:24 hostname parentalcontrolsd[43221]: -[ActivityTracker(Private) _removeAppFromWhiteList:] [1362:user] -- * Couldn't find local user record
    So, even though the apps are listed in Workgroup Manager and are unsigned, and also appear in '/Library/Managed Preferences/user/com.apple.applicationaccess.new.plist', it appears that the client somehow thinks they don't match what's in the whitelist even thought WE DON'T SIGN THEM WHEN WE ADD THEM!
    What might be causing this? Any further troubleshooting tips would be GREATLY appreciated!

    According to the [Code Signing Guide|http://developer.apple.com/library/mac/#documentation/Security/Conceptual /CodeSigningGuide/Procedures/Procedures.html#//apple_ref/doc/uid/TP40005929-CH4- SW2], it appears that there is no way to remove signing (emphasis mine):
    "You can take a partial-update approach to revising your code on the user’s system. To do so, sign the new version as usual, then calculate the differences between the new and the old signed versions, and transmit the differences. Because the differences include the new signature data, the result of installing the changes on the end-user's system will be the newly signed version. You cannot patch a signed application in the field. If you do so, the system will notice that the application has changed and will invalidate the signature, +and there is no way to re-validate or resign the application in the field.+"
    Upon further investigation, the version of FileMaker 5.5 in question appears to be signed even after a fresh install from original install media. I wouldn't have thought Code Signing was around back then (2001). And the code signing appears to match between the fresh install (to a new location) and the original install. I'll attempt to sign it in WGM and install the same, signed copy everywhere.
    Also, I looked at one of our other working primary applications (4D.app) and it is unsigned, but appears in the Firewall as "Allow incoming connections", so I don't believe that the Application Firewall is necessarily signing apps automatically (but I certainly won't be ruling it out).
    I haven't checked yet, but the other application that's failing is "Parallels Desktop 6", which I'd bet is signed. I wonder if the "Automatically allow signed software to receive incoming connections", which is checked, would come into play at all?
    Thanks for pointing out how to use `codesign` to check whether an application is signed or not, this seems to be the first real break on this case.

Maybe you are looking for