error on creation of dll

  • Thread starter Thread starter rahul gupta
  • Start date Start date
R

rahul gupta

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

Thnax very much my problem got solved.... :)
 
Back
Top