Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7685439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:15:06+00:00 2026-05-31T19:15:06+00:00

In Visual Studio 2010, I’ve written a C++/CLI managed class wrapper for an external

  • 0

In Visual Studio 2010, I’ve written a C++/CLI managed class wrapper for an external library provided as a .lib file, lets call it ExternalLibrary.lib. The .lib is included as a dependency of the project, and no warnings or errors are issued on compilation.

When I attempt to use this wrapper project by including it as a dependency of a C# project, I get the following error when I run in debug mode (project silently fails to run without debugging):

FileNotFoundException was unhandled
Could not load file or assembly 'WrapperProject.dll' or one of its dependencies.
The specified module could not be found

I verified that WrapperProject.dll is in the debug folder of the C# project, so I decided to check its dependencies using Dependency Walker (http://dependencywalker.com/) The first dependency on the list was “ExternalLibrary.dll”. I think this is the problem, because “ExternalLibrary.dll” never existed, only “ExternalLibrary.lib.” How do I tell Visual Studio to not require the non-existent DLL, and instead incorporate the .lib file?

It already throws an error if I remove the .lib from the linker path, so it’s looking for and finding the file; I’m not sure why at the end it would add a dependenency on a non-existent .dll.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:15:07+00:00Added an answer on May 31, 2026 at 7:15 pm

    You can’t – the DLL will always be required. The .LIB file is the import library for that DLL.

    Linking against the .lib file just tells the compiler how to load the proper information from the corresponding .DLL (ExternalLibrary.dll) at runtime. The .DLL is still required, and will need to be deployed along with your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Visual Studio 2010 RC -> Silverlight Application We have a library of images that
(Using Visual Studio 2010) I'm trying to create a shared_ptr of an existing class
Visual Studio 2010 offers a lot of comfortable tools for unit testing via its
Since Visual Studio 2010 is slated for release in March of 2010 and HTML
In Visual Studio 2010 Beta 2 I created a new navigation Silverlight application. Without
In Visual Studio 2010, when you say new Item, you can see Asp.NET Handler
Do visual studio 2010 include already Sql Server instance, or I need to install
With Visual Studio 2010 right around the corner, what does Visual Studio 2008 Professional
Is Visual Studio 2010 RC ever going to expire? Sorry if this isn't the
I am using the Visual Studio 2010 RC. Sometimes when I am working on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.