Having problem with class decaration when Building a class libraray

  • Thread starter Thread starter tony
  • Start date Start date
T

tony

Hello!

I try to build a class library but I run into some problems.

In the code for this class library there are some rows that have this kind
of look
public bool IsBottomMixValid(MeltPracDataGmix.BottomBlowing mix, int
maxBottomFlow)

As you can see here we have a class named MeltPracDataGmix that exist in the
code for the project
that build the actual exe file. So the class definition does not exist in
this project for this class library.

My qustion is what is the solution to this kind of problem.

I assume if this was C++ it would be enough to include the class declaration
which is the header file.

But in C# we don't have any header files. So how do I do here?

//Tony
 
Have you referrenced the other library? If so, have you added a using
statement to import the appropriate namespace from the other library?

What does the error message say when you build?
 
Chris,

I think Tony's problem is that the Class is compiled into an .exe, not
a .dll. So, it cannot be added as a reference to his current project.

My suggestion for him is that he would need to take the .vb or .cs file
containing the class and either add it to the current project, or
separately compile it into a .dll which can then be added as a
reference to the current project.

Regards,

Cerebrus.
 
Back
Top