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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:51:34+00:00 2026-05-25T11:51:34+00:00

I created some simple dll in visual studio, to begin to use it I

  • 0

I created some simple dll in visual studio, to begin to use it I read the following article:

To use the functionality from the class library in the console
application

1) After you create a new console application, an empty program is
created for you. The name for the source file is the same as the name
that you chose for the project earlier. In this example, it is named
MyExecRefsDll.cpp.

2) To use the math routines that were created in the dynamic link
library, you must reference the library. To do this, select the
MyExecRefsDll project in the Solution Explorer, then select
References… from the Project menu. On the Property Pages dialog box,
expand the Common Properties node, select Framework and References,
and then select the Add New Reference… button. For more information
about the References… dialog box, see Framework and References, Common
Properties, Property Pages Dialog Box.

3) The Add Reference dialog box is displayed. This dialog lists all
the libraries that you can reference. The Project tab lists all the
projects in the current solution and any libraries they contain. On
the Projects tab, select MathFuncsDll. Then click OK.

4) To reference the header files of the dynamic link library, you must
modify the include directories path. To do this, on the Property Pages
dialog box, expand the Configuration Properties node, expand the C/C++
node, and then select General. Next to Additional Include Directories,
type the path of the location of the MathFuncsDll.h header file.

5) The executable does not load dynamic link libraries until runtime.
You must tell the system where to locate MathFuncsDll.dll. You do so
by using the PATH environment variable. To do this, on the Property
Pages dialog box, expand the Configuration Properties node and select
Debugging. Next to Environment, type the following: PATH=, where is
replaced with the actual location of MathFuncsDll.dll. Click OK to
save all the changes.*

I understand why we need to set a location for the header and dll (paragraphs 4 and 5), my question is why we need paragraphs 2 and 3 to reference the library? thanks in advance for any simple explanation

  • 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-25T11:51:35+00:00Added an answer on May 25, 2026 at 11:51 am

    Step 2 and 3 describe steps to help create a managed project, one that uses the .NET framework.
    It is calling referencing an assembly, and is equivalent to linking in a library file for native apps.
    I take it you are creating a C++/CLI managed application?

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

Sidebar

Related Questions

I had a plugin installed in Visual Studio 2008, and it created some extra
What is the difference of creating a simple C DLL between using visual studio
I've created some fairly simple XAML, and it works perfectly (at least in KAXML).
I've created a simple desktop application in C# 3.0 to learn some C#, wpf
I have created some extra functionality on my Linq-to-SQL classes to make things easier
I am having several problems with tessdll in Visual Studio 2008. FYI, I created
Is there a simple way to read from the global application.exe.config file from a
Currently, we use an unmanaged DLL from a vendor that allows us to access
I've gone for a simple approach, I've created some NSString variables which I set
I want to create a simple http proxy server that does some very basic

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.