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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:50:49+00:00 2026-05-13T16:50:49+00:00

I’ve been following the tutorial from msdn and it just doesn’t work. First problem

  • 0

I’ve been following the tutorial from msdn and it just doesn’t work.

First problem I have is that sometimes the .dll and .lib aren’t built. Instead I only get .objs. Whenever I build the .dll project, it gives me a popup asking to “please specify the name of the executable file to be used for the debug session”. I was told to change my startup project to one with a main function, but then the .dll doesn’t get built. This happens both using the default VS configuration and simply adding some lines or following the step-by-step guide at msdn.

When the .dll and .obj are built – God knows how – I can’t get them to be recognized. I’ve tried putting them and the .h in the project folder, but then I get an error about the .dll function being undefined. Following the msdn link, at one point it says:

  1. To use the math routines that were created in the dynamic link library,
    you must reference the library. To do
    this, select References… from the
    Project menu. On the Property Pages
    dialog box, expand the Common
    Properties node, select 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.

  2. 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.

If I go Project > Test Properties > Common Properties I can only find the subitem “Framework and References”. There is no “References…” There is an “Add new Reference…” button, but that doesn’t let me add anything. The other button, “Add Path…” doesn’t make any difference even when I set it with the directory with the files. The following steps don’t work either.

I’ve also tried to add the name of the file at the Linker, but then it says it couldn’t find the .obj file.

I have no idea where to go from here. I been stuck on this for hours and nowhere has a solution for this.

Is there a step-by-step guide anywhere that actually works for VS2008?

  • 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-13T16:50:49+00:00Added an answer on May 13, 2026 at 4:50 pm

    firstly your description is mixing managed (.net) things with normal c++ stuff. I assume you are doing normal c++ stuff.

    DO you own (I mean have the source; are the author) both the DLL and the calling program? If so you should have 2 VS projects one for the DLL and one for the program. You should set the program as the startup project. This will make the debugger behave correctly

    IN order to get the build right you need to make the c++ program depend on the dll project. There is a Project | Project dependies dialog that will do this for you, set the program project to depend on the dll project

    If you only own the DLL then you need to go to the project properties | debug and tell it what binary to run to call your DLL.

    If this is managed c++ then its a whole different storty

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

Sidebar

Ask A Question

Stats

  • Questions 386k
  • Answers 386k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You don't show enough code to determine whether the size… May 14, 2026 at 11:52 pm
  • Editorial Team
    Editorial Team added an answer This is a tricky one. There is no way to… May 14, 2026 at 11:52 pm
  • Editorial Team
    Editorial Team added an answer I usually do something like <form action="/controller/action" method="post" id="formID"> </form>… May 14, 2026 at 11:52 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.