![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
while m creating a dll i have written dll code under class library and created a console app. to link to dll by adding the refrene but when i m compilling the project following error is shown a project with an output type of library can not be started directly. In order to debug this project add an executable project to this solution which refrences the library project.set the executable project as the starting project. plz help me to sout out wid this error. |
#3
| |||
| |||
|
|
rahul gupta wrote: while m creating a dll i have written dll code under class library and created a console app. to link to dll by adding the refrene but when i m compilling the project following error is shown a project with an output type of library can not be started directly. In order to debug this project add an executable project to this solution which refrences the library project.set the executable project as the starting project. plz help me to sout out wid this error. As the error says, you need to set an executable project as the startup project. *Currently, you apparently have your DLL project as the startup project, but since a DLL doesn't have an executable entry point, that won't work. To fix the problem, in the Solution Explorer, right-click the project for your console application and choose the "Set as Startup Project" menu item. The project currently selected as the startup project will be shown in the Solution Explorer in bold text. *Make sure the startup project is your console application, and not the DLL. Pete |

![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |