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 574739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:51:48+00:00 2026-05-13T13:51:48+00:00

I got a .h file, two .lib files, a .dll file and a tiny

  • 0

I got a .h file, two .lib files, a .dll file and a tiny test project from a hardware vendor to talk to their hardware.

Compiling and running their test project works just fine. Noteworthy: they don’t use the .dll. I can throw the dll-directory and all of it’s content away, everything works just fine.

To start things off I simply copied the communication parts of their code (connect, disconnect and send a command) into my project. This is actually all that you can do. I have included the .h file and pointed to the directory containing the .lib files. Just like in the tiny test project. It all compiles, but when I try to run the project complains that it is missing the .dll file.

Can anybody explain what is happening? How are libs and dlls supposed to work?

All of this is on windows, VS2005. I compared the .vcproj files and could not find any significant differences.

  • 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-13T13:51:49+00:00Added an answer on May 13, 2026 at 1:51 pm

    The test project is statically linked – the lib is included in the exe.

    Your project is dynamically linked – the dll is referenced and therefore needed at runtime.

    See this Stack Overflow question for more information.

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

Sidebar

Related Questions

I've got two files,file a around 5mb, and file b around 66 mb. I
Suppose I got a file amended in two revisions, says 100, 110, in a
I got some file sample.mt from client, and when i open info, it reveals
I've got a file (test.txt) which contains 1234567. However when I try to read
I've got a CSV file with two sets of data in it [its pulled
I have a situation where I've got file names stored in two fields in
I have got a file with a lot of two pairs of string, namely
I've got a file that contains two delimiters ( : and , ), and
on master file got ... <div id=nav-main> <asp:Menu ID=Menu1 runat=server DataSourceID=SiteMapDataSource1 Orientation=Horizontal Width=573px CssClass=menu-main
I've got a file upload field (attachment1) in a form that may or may

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.