How do I use another class

C

Cub71

I have downloaded some code that i need, but I do not know how to
make
use of it in another project.

When i unzipped it, it looks like a full 'project'-folder from Visual
Studio 2005 with a sln-file, a dll-file, a csproj-file a couple of
cs-
files, a csproj.user-file, sou-file and the bin and obj-folders.


But when i try to run it, I get: "A project with an output type of
class library cannot be started directly.


When I try to add a Windows Form to the project, I get a red screen:
"The designer could not be shown for this file because none of the
classes within it can be designed. The designer inspected the
following classes in the file: Form1 --- The base class
'foxtrot.xray.Form' cannot be designed. "


What do I do?
 
P

PS

Cub71 said:
I have downloaded some code that i need, but I do not know how to
make
use of it in another project.

When i unzipped it, it looks like a full 'project'-folder from Visual
Studio 2005 with a sln-file, a dll-file, a csproj-file a couple of
cs-
files, a csproj.user-file, sou-file and the bin and obj-folders.
Sounds like you have a class library and the source code was supplied. Most
probably you just want to add a reference to the already created dll from
YOUR projects and not touch that code base at all. You would add a reference
to the "Release" build as this is the dll that is going to be supplied along
with your application. If you are planning to modify that code base then you
would add that project to your existing solution and from other projects in
the same solution you add a reference to the project.

PS
 

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