CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Managed C++ and C++/CLI Discuss Managed C++ and .NET-specific questions related to C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old July 26th, 2005, 05:02 AM
    Vaderman's Avatar
    Vaderman Vaderman is offline
    Member +
     
    Join Date: May 2004
    Location: London, England
    Posts: 563
    Vaderman has a spectacular aura about (125+)Vaderman has a spectacular aura about (125+)
    Reference Problem

    I am developing in VC++ 7.1 and I've created a DLL. This DLL works just fine. However, when I create an executable I try and add the DLL to my exe project as a reference - Reference->Add Reference. But when I try and run it, it fails stating that the DLL cannot be found!

    Any ideas?

    Regards

    John
    __________________
    I don't mind that you think slowly but I do mind that you are publishing faster than you think. Wolfgang Pauli, physicist, Nobel laureate (1900-1958)
    Reply With Quote
      #2    
    Old July 27th, 2005, 06:14 AM
    thre3dee thre3dee is offline
    Member
     
    Join Date: Jun 2005
    Posts: 94
    thre3dee is on a distinguished road (20+)
    Re: Reference Problem

    Quote:
    Originally Posted by Vaderman
    I am developing in VC++ 7.1 and I've created a DLL. This DLL works just fine. However, when I create an executable I try and add the DLL to my exe project as a reference - Reference->Add Reference. But when I try and run it, it fails stating that the DLL cannot be found!

    Any ideas?

    Regards

    John
    I'm not sure about the Reference thingo, do you have the dll in the same folder as the exe?
    Reply With Quote
      #3    
    Old July 27th, 2005, 06:17 AM
    Vaderman's Avatar
    Vaderman Vaderman is offline
    Member +
     
    Join Date: May 2004
    Location: London, England
    Posts: 563
    Vaderman has a spectacular aura about (125+)Vaderman has a spectacular aura about (125+)
    Re: Reference Problem

    Yes I do. At the moment, I'm having to copy my DLL file from its debug directory over to the Exe's directory. Of course I can set up a path for the DLL with in the properties of my exe, but I thought I could just add it as a reference, but it doesn't seem to do the trick.

    Regards

    John
    __________________
    I don't mind that you think slowly but I do mind that you are publishing faster than you think. Wolfgang Pauli, physicist, Nobel laureate (1900-1958)
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Managed C++ and C++/CLI


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 07:43 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009