Entry Point

  • Thread starter Thread starter Duncan
  • Start date Start date
D

Duncan

How do i create an entry point in a class library which
holds a windows form? When trying to call .dll get
message saying entrypointnotfound! New to vb.net!

Thanks in advance!
 
Duncan said:
How do i create an entry point in a class library which
holds a windows form? When trying to call .dll get
message saying entrypointnotfound! New to vb.net!

In the managed world you have to set a reference to the assembly in the
project that needs it.
 
Armin

Sorry am very new to vb.net, wondered if you could
explain how to do that?

thanks for your help

Duncan
 
Duncan said:
Sorry am very new to vb.net, wondered if you could
explain how to do that?

A library has no entry point. An Exe has an entry point (sub main).
Whenever you need library X in project Y, set a reference to the library in
project Y. Then you are able to use the classes in the library. To add the
reference:
- right-click on "references" in solution explorer
- select "add reference"
- browse for the dll file, _or_, on the "Projects" tab, select the dll if it
is in the same solution as the executable.
 
* "Duncan said:
How do i create an entry point in a class library which
holds a windows form? When trying to call .dll get
message saying entrypointnotfound! New to vb.net!

A class library doesn't have an "entry point". It provides a couple of
classes that can be used by other components or applications. In the
Windows Forms project, for example, open the "Refereces" folder in the
solution explorer and select "Add Reference..." from its context menu.
Then select the class library (DLL). Alternatively you can add the
whole class library project to the same solution.
 
Back
Top