error on creation of dll

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

rahul gupta

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.... :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top