visual studio 2010 unable to start program .dll

前端 未结 2 881
囚心锁ツ
囚心锁ツ 2021-02-12 20:06

I have a problem for my visual studio 2010. When I click start debugging button and it\'s start debugging.

It seems that there is no error \"i just create one \"button\

相关标签:
2条回答
  • 2021-02-12 20:43

    Visual studio will not run a .dll by itself. does your solution have an .exe project? if so, right click it and select "Set as Startup Project". if not you will need to create one, and instruct it to load the forms within your dll.

    as for left clicking the button, I'm not quite sure what you are describing. can you post a picture?

    0 讨论(0)
  • 2021-02-12 21:04

    In earlier versions of MSVC while running .dll, will get a dialog asking path for .exe file

    But in MSVC 2010 and above there is no such option. To fix this

    1. Right click on your dll project
    2. Properties
    3. Configuration Properties > Debugging. Here, in Command -> add path to your exe.

    Add command arguments, if any.

    You are good to go!

    0 讨论(0)
提交回复
热议问题