DLL Question

B

Bassam

Hello,

I'm using VS.NET 2005 and VB.NET , i have a large project , the IDE keeps
giving me errors regarding the vb compiler all the time , i thought to split
a big part of the project into separte DLL file

How can i call a routine in the main program from inside the code in the DLL
? say on click event of a button in a form in the DLL , can i call a routine
in the main program (not the DLL) and pass parameters ??

I don't know how to do that !! any help very appreciated

Regards
Bassam
 
C

Charlie Brown

Large projects are easier to manage when they are split up. You need
to add a reference to your main application using the second project.
In VS2005 you can add a reference by looking at the reference tab in
the MY Project folder.

If your DLL is in the namespace MySecondProject, then the main
application can access properties and methods by using an imports
statement at the top of a code page, or by using the full name such as

MySecondProject.DoSomethingMethod()
 

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

Similar Threads


Top