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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:45:35+00:00 2026-05-11T10:45:35+00:00

I have been given a small library, consisting of a .dll, a .h header

  • 0

I have been given a small library, consisting of a .dll, a .h header and a .def file. I’m fairly sure the library was written in C, but possibly C++.

Is it possible for me to access the functions in the library without using the LoadLibrary/GetProcAddress/FreeLibrary method that is usually talked about. I have no .lib file – is it usual to have one?

I’ve literally spent the past 2 days looking this up. It seems that since I’ve been given a header file defining the functions I wish to use from the dll, and a .def file I shouldn’t need to explicitly ‘load’ each function manually (LoadLibrary/GetProAddress/FreeLibrary) – in my case I will be using around 5 or 6 functions from the .dll, but there are around 70 available and it seems that would be a ball-ache and result in an unnecessary mess of code.

Thanks for any advice.

  • 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. 2026-05-11T10:45:36+00:00Added an answer on May 11, 2026 at 10:45 am

    Visual C++ has ‘lib’ – look it up in the online help.

    Use ‘lib /def’ to make the .lib file.

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

Sidebar

Related Questions

I have been perpetually intrigued by test-driven development, but I can never follow through
I'm plugging Django into an existing system. I have been given a legacy schema,
I have been working on a question in c++ but im stuck in a
I have a small hobby project where I'm writing a 'wrapper'-daemon in linux, in
I have developed a number of classes which manipulate files in Java. I am
We are a small team of 4 developers working on a web application. We
I'm creating a small app in ASP.NET MVC that generates ics (iCal) files based
I've been asked to write a cross-platform desktop app in Java. Targeted platforms are
I run a small VPS with 512M memory of memory that currently hosts 3
I have a very scary error on Fortran 95: Fatal Error: While reading module

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.