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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:10:39+00:00 2026-05-30T11:10:39+00:00

I just bought a device that comes with a dll file. I want to

  • 0

I just bought a device that comes with a dll file. I want to use Visual C++ to program the device. How do I load the .dll file into my project?

  • 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-30T11:10:41+00:00Added an answer on May 30, 2026 at 11:10 am

    A DLL is a library file that contains compiled program logic, just like an EXE. You can’t execute it alone, but like an EXE file you can’t just ‘load’ it into your project either.

    You will need to use functions like Load Library to load the library, and then GetProcAddress to find a function you want to call.


    Edit:

    After you clarified your question in the comments you are trying to write a windows program instead of a program you run on your device.

    I wrote some sample code to show you how to start:

    #include <windows.h>     // This is a windows header file. The functions I mentioned above are declared here
    #include "mpusbapi.h"    // This is the header file supplied. It declares the function prototypes that are defined in the DLL
    
    int main(int argc, char* argv)
    {
        // Try to load the library
        HMODULE mpbusDLL = NULL;
        mpbusDLL = LoadLibrary(L"mpusbapi.dll");
    
        if (mpbusDLL != NULL) {
            // If the library could be loaded, then load the functions using GetProcAddress()
    
            // Load the function 'MPUSBOpen' from the DLL
            MPUSBOpen = (HANDLE(*)(DWORD, PCHAR, PCHAR, DWORD, DWORD)) GetProcAddress(mpbusDLL, "_MPUSBOpen"); 
    
            ...
            MPUSBOpen(...);
        }
    }
    

    This C code will load your libary and then attempt to load the function MPUSBOpen, which is implemented in your DLL.
    You will need to load the other functions defined in your header file the same way (at least if you want to use them).

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

Sidebar

Related Questions

I just bought a WP theme: http://demo.wpzoom.com/evertis/ and I want to modify the Featured
I just bought a new MacBook Pro which comes with Snow Leopard 10.6.2 (Mac
I just bought a Google Nexus One smartphone, and I want to write a
I've just bought a Rainbowduino to control a load of individual LEDs (NOT an
I just bought an iPhone 3GS and wondering what applications that can help on
I want to set a label to string: خخخ just bought: Disguise Kit. but
Just bought a cheap defunct hp touchpad. I notice that when I browse to
I just bought Delphi XE2 starter and want to upgrade my projects. One of
I just bought Visual Studio 2008 Professional and it came with SQL Server 2005
I just bought a SSL Certificate for an parked domain that im going to

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.