Distributing an Application that calls Visual Studio built DLLs

I have a LabVIEW application that calls a Visual Studio 2005 built DLL, that then calls functions from another Visual Studio built DLL. When trying to distribute this application it will execute perfectly well on all machines with Visual Studio installed, but on any machine that doesn't have Visual Studio installed, despite installing the Visual Studio Redistributable Package on the machine, I get the error message on attempting to run the application:- "Missing External Function 4575Interface.dllname of function):C in (sub VI that uses function).vi" for the 10+ VIs that use functions called from that dll.
Any suggestions?

Hi,
You will need to manually add all of the DLLs you
are calling into your LabVIEW project. Check in the folder
"Dependencies" in your Project Explorer what external DLLs the VIs are
using, then drag and drop those DLLs into your project. LabVIEW will
not automatically include these external DLLs when you specify a build
specification unless you explicitly tell it to do so. When you
distribute the application using an executable, always explicitly
select those DLLs as "Always Included". Finally, register these DLLs on
the target machine by using Windows command: regsvr32.exe. I would recommend you to write a Windows batch file *.bat to ease the deployment process. 
Another
point to note is, the DLLs you will find in the folder "Dependencies"
are the DLLs LabVIEW automatically recognized through what you are
calling in your program. However if any of these DLLs is linking some
other DLLs, LabVIEW will not be able to detect them on the build, so
you will need to add the DLLs into your project manually for
distribution.
Hope this helps,
Best regards,
Mark M.
Applications Engineer
National Instruments UK & Ireland

Similar Messages

  • How can I build an application that calls functions in a dll if the associated hardware is not present?

    I am trying to build an application that use the "Call Library Function" node to call functions in a dll.
    The dll was provided by a third-party and includes functions to drive an I2C communication board.
    The problem I have is that the dll does not not properly because the hardware is not present.
    Therefore when I load the VI a broken arrow is displayed and when I am not able to build the application.
    I will not be running the application on the PC where I build the application, therefore I want to be able to build the application on a remote PC that has not all the hardware installed. Once the application will be build it will be installed on the target PC that has all the hardware.
    How can I make the application builder to build the application event if the dll is not properly loaded? (the dll will be properly loaded on the target PC)
    I want to do this on LabView 5.1.1, any ideas?

    Some .dlls don't try to attach to the driver when loaded.
    I've worked with both and unfortuately, I've not figured out a way around this problem.
    You could possibly use the Conditional Disable structure around the dll calls so they would not be loaded unless you're in the runtime engine. But i've not tried this so I don't know for sure if it's possible.
    Anyone??
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Custom Administration Setting (Visual Studio form dll)

    I am developing a custom extension to SCSM that needs an administration settings page. I have the MP created and the SCSM part in place. Also the WPF User Control dll part, but the link between the two is the trouble. I have used Travis
    Wright’s article for the MP stuff:
    Creating a Custom Administration Setting
    But get this message when accessing the dll from the SCSM console.
    Any sample VS project or help?
    /Kim

    I'm afraid the screenshot doesn't provide enough information about the error.
    Have you stepped through your code yet to find out where the error is occurring? If you're unfamiliar with how to do that: In Visual Studio, Debug|Attach to Process, attach to the Microsoft.EnterpriseManagement.Monitoring.Console.exe. Set a break-point at
    the first statement in your ExecuteCommand method, then double-click your admin settings in the console. If your DLL is properly installed, you should hit the break-point right away.
    If you're not hitting your break-point but still seeing the exception, it's likely something is out of whack with your MP or the way your DLL is setup.

  • Distributing an application that uses componentworks++

    I am new to using MS. 
    I am going to distribute a Visual C++ application to a remote site, sending the customer a DVD.
    The application is an MFC application that uses ComponentWorks++ (from Measurement Studio)  and NiDaq.
    What do I need to be able to distribute this application?  Do I need to license each  target for MS?  Do I need to separately install Component Works++ on the target?
    Thanks,
    Menchar

    I'm still having some issues ...
    We went ahead and used InstallShield 12.0 to create a release file (setup.exe).  We're using MS 1.0.1 so we didn't have merge modules, but rather a bunch of .ocx and .dll files in a /redist    folder that looks to be the stuff you distribute to get a ComponentWorks++ application deployed.  So we included all of those and InstallShield deployed them into the WinNT system folder.
    Our app also uses NI-DAQ 6.9, and my understanding is that NI-DAQ must be run on its own installer as provided by NI.  So we didn't include any NI-DAQ stuff.
    We tried testing our release on a WindowsNT virtual machine (clean machine).  We first installed NI-DAQ, then ran our app installer (setup.exe).  Install of NI-DAQ and our app appears to go OK, but when we run the application in the virtual machine it fails to start, giving us a popup that says it can't find the CVI rte!  We installed the CVI RTE just for giggles but it still died on startup.  Does NI-DAQ 6.9 use the CVI runtime engine?
    My question now is, can we expect our app to start on the virtual machine?  The app is designed to run without any NI-DAQ HW present.  I am able to run it on an XP machine without any NI-DAQ HW, but that machine also has ComponentWorks++ 1.0.1 installed, VC++ 6.0 SP 5, and NI-DAQ of course as well (but no NI DAQ HW), and I didn't install the application, I just ran the executable after building it on the XP machine.  The app also runs OK on the intended WinNT 4.0 target - but the target has NI-DAQ HW & SW, all of MS 1.0.1 (including CVI), and VC++ 6.0 SP5 installed.
    So I can't say I've been able to create a distribution that will install and run on a system that doesn't already have NI-DAQ, CW++ and VC++ installed.  I can't find any relevant help on the NI site for these old versions of CW++.
    I'm also curious if there's a dependency between CW++ and CW?  I.e., from a VC++ application, could it have a dependency on CW (my understanding CW is for VB only).
    I see what looks like a VC6 runtime of some sort in the CW /redist folder - is this an extension of the Microsoft VC runtme dll? 
    Thanks for any help with this, it's funky working with these old versions - I have to support some long-lived systems deployed overseas.
    Menchar

  • Can't see SAP- Application Servers in Visual Studio 2003 Server Explorer

    Hi Experts
    I installed SAP .NET Connector 2 in Visual Studion 2003. I can add SAP Connector Proxy to the project but I can't see SAP->Application Servers in Server Explorer window in Visual Studio. So I can't add a new SAP application server. Refreshing Server Explorer doesn't help. Does anybody know any solution?
    Best regards,
    Krzysztof

    Please note that this forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
    You will have to re-post your query to one of the SAP forums.
    Marking this thread as "Assumed answered".
    Ludek

  • Mobile Application Devlopment with Visual Studio in SUP 2.0

    Hello
    I am using SUP 2.0 for Developing Blackberry Apps
    But now I want to prepare Apps for Windows Mobile
    I have installed SUP 2.0 & Visual Studio 2008
    I am not able to see "Sybase Unwired Workspace" options(Project Types) in Microsoft visual Studio 2008.
    Please tell is there any link, PDF or Doc for that
    I am waiting for reply Please help!!!!!!!!!!!!!!!!
    Regards
    Prashant

    I believe we no longer have support for a SUP Plugin within VS (since 1.5.2)
    Though do not mistake this with the fact that you can develop in VS against SUP. Generate your C# stubs in SUP Eclipse then copy them to VS
    Thanks
    Ian

  • Standalone java application that calls Db2

    Hi,
    I am trying to use coherence in my standalone java
    application that makes JDBC calls to Db2.
    The sql statemet is like below:
    select lastName,firstName from employee where empNo=2224;
    In the application,I would read from the flat file say
    200 account numbers and query the database.
    If I have queried the database already with the given
    account,I want to retreive from the cache.
    I am having real trouble in getting this work with
    coherence software.
    Any psudo code in this regard will help me a lot.
    Thanks
    DJon

    Hi Jon,
    Thanks for the mail.I am struck in
    implementing the coherence in the sample program.
    any help in this regard is appreciated.
    Thanks
    DJon
    Below is the sample program that works without coherence.go to db2 and get the information.
    import java.sql.*;
    import java.util.*;
    public class DB2Client
    static void printColumn(String in)
    System.out.print(in);
    System.out.print(" | ");
    public static void main(String[] args)
    Driver myDriver = null;
    Connection myConnection = null;
    try
    myDriver =
    (Driver)Class.forName("com.ibm.db2.jcc.DB2Driver").newInstance();
    myConnection =
    DriverManager.getConnection("jdbc:db2:sample","dujon","jeff");
    PreparedStatement myStatement
    = myConnection.prepareStatement("SELECT
    empno,firstnme,lastname FROM employee where empno > ?");
    myStatement.setString(1,"00");
    ResultSet
    myResults=myStatement.executeQuery();
    while (myResults.next())
    printColumn(myResults.getString("empno") + "");
    printColumn(myResults.getString("firstnme") + "");
    printColumn(myResults.getString("lastname"));
    System.out.println();
    } catch (Exception e)
    e.printStackTrace();
    } finally
    try
    if (myConnection != null)
    myConnection.close();
    } catch (Exception e)
    Now,to implement the above sample with
    coherence I have written 2 programs.
    1. TangosolDB2Cache.java
    2. TestDB2Cache.java
    import com.tangosol.net.cache.CacheStore;
    import com.tangosol.util.Base;
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.Map;
    * An example implementation of CacheStore
    * interface.
    * @author erm 2003.05.01
    public class TangosolDB2Cache extends
    Base implements CacheStore
    // ----- constructors
    * Constructs DBCacheStore for a given
    database table.
    * @param sTableName the db table name
    public TangosolJDBCCache(String
    sTableName)
    m_sTableName = sTableName;
    configureConnection();
         * Set up the DB connection.
         protected void configureConnection()
              try
    Class.forName("com.ibm.db2.jcc.DB2Driver");
                   m_con =
    DriverManager.getConnection(DB_URL, DB_USERNAME, DB_PASSWORD);
                   m_con.setAutoCommit(true);
              catch (Exception e)
                   throw ensureRuntimeException(e,
    "Connection failed");
         // ---- accessors
    * Obtain the name of the table this
    CacheStore is persisting to.
    * @return the name of the table this
    CacheStore is persisting to
    public String getTableName()
    return m_sTableName;
    * Obtain the connection being used to
    connect to the database.
    * @return the connection used to
    connect to the database
    public Connection getConnection()
    return m_con;
    // ----- CacheStore Interface
    * Return the value associated with the
    specified key, or null if the
    * key does not have an associated
    value in the underlying store.
    * @param oKey key whose associated
    value is to be returned
    * @return the value associated with
    the specified key, or
    * <tt>null</tt> if no value is
    available for that key
    public Object load(Object oKey)
    Integer iKey = (Integer)key;
         return query("select
    lastName,firstName from employee where empNo = " + iKey);
    * Store the specified value under the
    specific key in the underlying
    * store. This method is intended to
    support both key/value creation
    * and value update for a specific key.
    * @param oKey key to store the
    value under
    * @param oValue value to be stored
    * @throws
    UnsupportedOperationException if this implementation or the
    * underlying store is
    read-only
    public void store(Object oKey, Object
    oValue)
              mycacheTable(oKey,oValue);
    public void erase(Object oKey)
         public void eraseAll(Collection
    colKeys)
              throw new
    UnsupportedOperationException();
         public Map loadAll(Collection colKeys)
              throw new
    UnsupportedOperationException();
         public void storeAll(Map mapEntries)
              throw new
    UnsupportedOperationException();
         // ----- data members
         Hashtable mycacheTable = new Hashtable(1000);
         * The connection.
         protected Connection m_con;
         * The db table name.
         protected String m_sTableName;
         * Driver class name.
         private static final String DB_DRIVER =
    "org.gjt.mm.mysql.Driver";
         * Connection URL.
         private static final String DB_URL =
    "jdbc:db2:sample";
         * User name.
         private static final String DB_USERNAME =
    "dujon";
         * Password.
         private static final String DB_PASSWORD =
    "jeff";
    TESTING THE ABOVE PROGRAM
    import com.tangosol.net.cache.CacheStore;
    import com.tangosol.util.Base;
    import
    com.tangosol.net.cache.MapCacheStore;
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.Map;
    public class TestDB2Cache {
         public static void main(String args[]){
                        TangosolJDBCCache mycache = new
    TangosolDB2Cache("employee");
                        Connection
    con=mycache.configureConnection();
                        MapCacheStore cacheStuff = new
    MapCacheStore(HashMap hmap);
                        String[] employeeNumbers =
    {"000010","000020","000030","000040","000050"};
                                  // find whether it has been cached already
                                       for(int
    i=0;i<employeeNumbers.length();i++){
                                       oCurValue =
    cacheStuff.load(employeeNumbers);
                                       if(oCurValue == null){
                                            // execute SQL statement
                                            con.executeQuery(oCurKey);
                                       else
                                            //get from cache the values and return
                                            cacheStuff.load(oCurKey);

  • Using CVI libraries in Visual Studio C DLL

    Hello,
    I am attempting to enhance a legacy VS 2008 Visual C based DLL to use NI Shared Variable/Network Variable support.  From what I have found in the documentation, it seems to imply that CVI libraries can be imported into an existing VS by using the libraries in the ext/msvc64 directory.  I originally included just the cvinetv.lib file to my linker list.  After reading more of the CVI programmer manual, it seemed to imply that cvirt.lib and cvisupp.lib were also needed.  Under both circumstances, the linker throws a conflict between CVI libary and MSCVRT.  Since this is a legacy project and not a CVI wizard generated situation, I'm wondering if there are more tweaks that need to be done my project settings.  I also found a mention of needing to list "libc" under "Ignore Specific Library".  Doing this made no difference either?
    Any help would be greatly appreciated..especially if this approach is not a valid way to take advantage of shared network variables in a standalone DLL.
    Thanks,
    Chris.
    Linker errors:
    1>LIBCMT.lib(tidtable.obj) : error LNK2005: _encode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(tidtable.obj) : error LNK2005: _encoded_null already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(tidtable.obj) : error LNK2005: _decode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(crt0dat.obj) : error LNK2005: _amsg_exit already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(crt0dat.obj) : error LNK2005: _initterm_e already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(crtheap.obj) : error LNK2005: _malloc_crt already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(mlock.obj) : error LNK2005: _unlock already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(mlock.obj) : error LNK2005: _lock already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(winxfltr.obj) : error LNK2005: __CppXcptFilter already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(crt0init.obj) : error LNK2005: __xi_a already defined in MSVCRT.lib(cinitexe.obj)
    1>LIBCMT.lib(crt0init.obj) : error LNK2005: __xi_z already defined in MSVCRT.lib(cinitexe.obj)
    1>LIBCMT.lib(crt0init.obj) : error LNK2005: __xc_a already defined in MSVCRT.lib(cinitexe.obj)
    1>LIBCMT.lib(crt0init.obj) : error LNK2005: __xc_z already defined in MSVCRT.lib(cinitexe.obj)
    1> Creating library .\Debug/pil_dlld.lib and object .\Debug/pil_dlld.exp
    1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup

    I wonder if it is possible to some forum admin to mark Christopher's last reply as the solution. I've tested what he suggested, since I was trying to do basically the same thing, and it worked like a charm. Also thanks to Edna-S for confirming the validity of the fix.
    Wouldn't it be useful to update document 3TTHO2ZW to include Christopher's findings?
    Best regards,
    Robst - CLD
    Using LabVIEW since version 7.0

  • LabVIEW built DLL's in a multi-threaded C++ app, Help Needed!

    I'm working on a software application that is being developed
    primarily in C++. There is a component of this larger application,
    however, that is being developed in LabVIEW (for several reasons that
    I won't dive into here). This LabVIEW code is therefore executed
    within a C++ wrapper class that calls a LabVIEW built DLL.
    All this was fine and dandy, untill we decided to multi-thread our C++
    application. As a result, the LabVIEW DLL now gets called from
    multiple threads simultaneously. From all of my testing, it appears
    that resource locking is occuring such that only one thread has access
    to the .dll at a time. If I make the .vi used to define the dll
    function prototype as non-reentrant then this is what we see. As an
    example, say we have 3 threads all calling the same .dll method call.
    Thread 1, 2, and 3 all call the .dll within a few milliseconds of each
    other. Thread 1 completes the .dll call after X milliseconds. Thread 2
    completes the .dll call after 2X milliseconds, and thread 3 completes
    after 3x milliseconds.
    Now, changing the vi to reentrant, and running the same test, we see
    Thread 1, 2, and 3 all complete the .dll call in 3x milliseconds.
    While the fact that they now take the same amount of time to complete
    would lead you to believe they are happening in parallel, the fact
    that it takes 3x milliseconds as opposed to X milliseconds means they
    are not.
    Has anyone ever dealt with these issues before? Is it possible that
    messing with the "execution system" for the vi will have an affect?
    What if different .dll methods but still attached to the same .dll are
    called from different threads? Same behavior? Is it a lost cause? Is
    there no way to make code within a single LabVIEW built .dll run in
    two different threads at the same? From what I understand this is
    easily doable with a normal (non-LV built) .dll.
    Please, if anyone has any advice in this area, let me know!!!
    Much appreciated,
    Jesse Hurdus

    Duplicate post.

  • I need to add a new report to the application that is done using visual studio and SSRS and SQL Server 2008

    I have an application that is done using SSRS on visual studio and it connects to the report server on SQL server 2008 environment.
    I've been changing the existing reports using visual studio 2008 and modifying the reports on the report server. How do I add a new report to the application ? I created a new report and deployed it on the report server but it didn't show up in the application.
    I can access the application source code on visual studio 2010 and TFS (Team Foundation). Thanks. 

    Hi,
    I have a question. This application retrieves SSRS reports from the report sever. When I download the reports
    from the SQL Server I can open them in visual studio 2008 but they don't open in visual studio 2010. I can access the application files on visual studio 2010 and team foundation server 2010. I was unable to open team foundation server 2008 on visual studio
    2008. The issue is that I am unable to add a report with a new name to the application. I use visual studio 2008 to deploy the reports on the report server but it has to be the same name to be able to run the report from the application. I can deploy any report
    on the report server but I can't access it from the application unless it has to be the same name as the present reports. If I keep the report the same name then it will replace the old report and the new report will run from the application. But only if it's
     the same name. I guess when I add a new report to the application with a new name I am supposed to add a definition in the application C sharp files  on visual studio 2010 so that the new report will show in the application. What's your opinion
    ? I have attached 2 images of the application and team foundation server 2010 and the report server.
    Thanks. 

  • Application Insights for load testing in VS 2013, Azure Preview or Visual Studio Online?

    I'm trying to get some clarification on which version of application insights to use to get performance counters from application insights for my azure cloud service for load and performance testing purposes. 
    So far, its not be clear what the differences between the two versions are, after deploying first the Azure Preview version, I attempted to set up performance counters using application insights but was shown an error because my visual studio online account
    did not have an associated application insights instance. 
    Is it possible to get performance counters using AI for load testing using the Azure Preview version? If so, how? If not, is that planned as a new feature or will performance counters for VSO cloud based load testing have to be used when support for the
    VSO version of application insights is eventually dropped? 
    Thanks, 
    Luke

    Hi Alex, thanks for your response. I do have an Azure account, and have tinkered with AI in Azure Preview. My question was more about what the differences between the VSO and azure preview versions of AI are. 
    When I initially deployed AI to the azure portal and tried to run load tests from visual studio (cloud load tests, that is) I could not. Its possible I had made a mistake in configuring the azure version of application insights though. Strangely enough,
    I actually do still see application insights data in the azure preview portal after I removed the newer AI version and installed AI 1.3. 
    To clarify my question, is it or will it be possible to run cloud based load tests (using visual studio online or another integrated service) against a azure web role deployed with application insights for azure and get performance counters of the system
    under test via AI? To do that, will I also have an application insights application in the visual studio online account (similar to how I do now with the VSO version of AI), because that seems to be a requirement to load performance counters from application
    insights within visual studio. 
    Thanks and sorry if I misunderstood your answer. 

  • Adobe Illustrator CS 5.1 Application develped in Microsoft Visual Studio 2012 Visual Basic failed

    I just developed an Adobe Illustrator CS 5.1 Application in Microsoft Visual Studio 2012 Visual Basic. It works fine on my Windows 7 Professional 32-bit Operating System. But when I tried to run it on Windows 7 Professional 64-bit Operating System which also has Illustrator CS 5.1 installed, the application crashes when it runs to the code which calls Illustrator Library Objects.  The error message is System.TypeInitializationException: The type initializer for 'WindowsApplication_GangArt.Module2' threw an exception. ---> System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Illustrator.Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{95CD20AA-AD72-11D3-B086-0010A4F5C335}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). I wonder why the application cannot fined Illustrator on the new 64 bit computer.

    I just developed an Adobe Illustrator CS 5.1 Application in Microsoft Visual Studio 2012 Visual Basic. It works fine on my Windows 7 Professional 32-bit Operating System. But when I tried to run it on Windows 7 Professional 64-bit Operating System which also has Illustrator CS 5.1 installed, the application crashes when it runs to the code which calls Illustrator Library Objects.  The error message is System.TypeInitializationException: The type initializer for 'WindowsApplication_GangArt.Module2' threw an exception. ---> System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'Illustrator.Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{95CD20AA-AD72-11D3-B086-0010A4F5C335}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). I wonder why the application cannot fined Illustrator on the new 64 bit computer.

  • Visual Studio download a document from a document libary and upload it to a jaxrs webservice in java

    I have created a custom ribbon action and a application page in visual studio. The user
    presses my ribbon in sharepoint and it calls the application page that in turn downloads that file. here is the code:
    namespace Save_to_PLM.Layouts.Save_to_PLM
    public partial class ApplicationPage : LayoutsPageBase
    protected void Page_Load(object sender, EventArgs e)
    if (Request.QueryString["file"] != null)
    DownloadDocument(Request.QueryString["file"].ToString());
    private void DownloadDocument(string fileName)
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite oSiteCollection = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb mi_web = oSiteCollection.OpenWeb())
    string path = System.Web.HttpContext.Current.Server.MapPath(fileName);
    string name = System.IO.Path.GetFileName(path);
    Console.WriteLine(name);
    Microsoft.SharePoint.SPFile spFile = mi_web.GetFile(fileName);
    Response.ClearHeaders();
    Response.ClearContent();
    Response.ContentType = "application/force-download";
    Response.AppendHeader("content-disposition", "attachment; filename=" + name);
    Response.BinaryWrite(spFile.OpenBinary());
    Response.End();
    But i want to http post that file to my jaxrs webservice in java. How do  i do that
    programmatically? I am very new .net i usually code in java.

    Hi,
    Here is a blog about how to call a Java EE Web Service from a .Net Client for your reference:
    http://blogs.msdn.com/b/bursteg/archive/2008/07/19/how-to-call-a-java-ee-web-service-from-a-net-client.aspx
    If you want to download a document from a Sharepoint library, we can use the REST API provided by SharePoint and use Apache HttpComponents in Java.
    http://www.rgagnon.com/javadetails/java-get-document-sharepoint-library.html
    About how to upload file using jaxrs webservice in C# code, I suggest you post it to C# or ASP.Net Forum, you will get more help and confirmed answers from there.
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=csharpgeneral
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Comprehensive list of Visual C++ breaking changes in Visual Studio

    Where can I find a comprehensive list of Visual C++ breaking changes in Visual Studio 2008 and Visual Studio 2010?
    The list of breaking changes mentioned in MSDN is not exhaustive.
    I would narrate a small incident where I felt the need of having such an exhaustive list.
    A third party developer was using the older version of my application which is built in Visual Studio 2005. He was trying to build his own DLL using the API exposed by my application, but in Visual Studio 2010.
    The API, unfortunately passes STL objects viz. std::string. We know this is
    catastrophic and evidently the third party developer encountered run-time issues with his code- a crash during string manipulation.
    After some digging I discovered that that the binary layout of Visual Studio 2005 std::string is different from the Visual Studio 2010 version.
    For reasons best known to the third party developer, he was not able to move back to Visual Studio 2005 and insisted on using Visual Studio 2010. For the above issue I suggested him a workaround for std::string manipulations( create a new string class that
    will emulate the memory layout of Visual Studio 2005 std::string).
    Likewise, I would like to know all the changes (breaking changes) in Visual Studio 2008 and Visual Studio 2010 so that I can warn the third party developer about the use of the objects that have changed.

    Of course it is even worse that what Mike said:  If you expose STL in your DLL interface, you have to impose a lot of other requirements on the consumer of your DLL (or provide many copies of your DLL each built a different way).  This includes
    things like:
    _HAS_ITERATOR_DEBUGGING
    _SECURE_SCL
    Debug versus Release
    Static versus dynamic linking of the CRT
    (Actually if the consumer is statically linking the CRT I don't know if you can make STL work at all unless you only use custom allocators as memory allocated by one instance of the CRT will be freed from the other instance of the CRT)

  • Are there any plans to migrate the BDB project to Visual Studio 2005?

    The problem is when BDB is linked into an application built with VS8, deleting some BDB objects results in mixing memory managers and application crashes.
    That is, if BDB is built with VS6, the BDB DLL will use VS6's new and delete operators. If the application that uses BDB is built with VS8 its objects will be allocated using VS8's new and delete:
    DbSequence *seq = new DbSequence(db, 0);
    delete seq;
    The first line calls application's new and then the DbSequence constructor. The second line, on the other hand, calls the destructor, which in turn calls the operator delete (Microsoft's "scalar deleting destructor"). The destructor resides in the BDB DLL, so the delete call is made in the context of the DLL, trying to delete the memory block that was allocated by the executable.

    Thank you for the reply, Michael.
    I finally have been able to work around all inter-DLL dependencies between VS6 and VS8 builds. You may want to mention in README the fact that if C++ interface is used, the application is expected to be built with the same compiler used to build BDB, even if custom callbacks for malloc, realloc and free are used in the code.
    The BDB project builds partially in VS2005. A few subprojects fail by default and the db_dll project requires a couple of small fixes. For example, advapi32.lib is missing from the list of input libraries in db_dll project (SetSecurityDescriptorDacl and InitializeSecurityDescriptor). The resulting DLL seems to work fine.
    Also, those applications that build with 32-bit time_t will fail to link. It's easy to fix, but I wonder if this will have any effect on the format of the database.
    Andre

Maybe you are looking for

  • Restoring music from a cloned bootable hardrive?

    Hi, I am in the process of getting ready in upgrading from tiger to snow leopard. I have already cloned my current internal hard drive using super duper into an external usb drive, in case the upgrade doesn't work. As I want to do a clean install of

  • HT1695 WiFi is off in Settings and will not allow me to turn ON.  I have turned phone off and no change.

    In "Settings"  Wi-Fi is "Off" and will not allow me to turn it ack on.  I ave turned the phone off but it does not Chang anything.

  • IMac 20 will not read DVD data disc

    Today I tried to copy a DVD data disc and the iMac opened the finder Cue window to ask if I want to open the untitled CD. It was a DVD with 3+ GB of data. Funny, but the same disc opens on the PowerBook G4 17" just fine... has anyone else have this p

  • IChat Audio out of right speaker only

    Not sure what is going on but iChat only sends chat audio only to the right speaker on my MacBook Pro. When in iChat I can launch other programs with sound and it comes out both speakers. My output in preferences is set to the middle also so it shoul

  • Video iPod Display Corrupted

    My video iPod is suddenly now displaying thin lines on the left 1/3 of the screen, a black splotch on the lower right hand corner of the screen, and cracked "lines" emanating from the splotch. The screen itself is not cracked. I cannot see any menus.