load dll files dymically

S

simran

I a making one application in VB.NET. I want to add the reference of
DLL which is placed in different folder
at run time.
How will i add the reference or use the dll at runtime to get the
methods of the dll.
I mean if I can use the classes contained into dll files without
indicate a reference to them statically

Pls help em with code.
 
M

Mohamoss

Hi
You can achieve these functionally using classes from the reflection
namespace . you can read about the name space on this link

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemreflection.asp
also there is a good sample program that use the reflection to compile
vb.net code on the file you can find its article with source code on
http://www.codeproject.com/vb/net/DotNetCompilerArticle.asp
hope this helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
S

simran

Hello..I tried that one but still its not working..
can u let me know some code..

I have the dll which calls method "createhtm" along with these parameters ..

(path, nFileName, Outputpath)

How will I add the reference and use the dll dynamically.


Pls do let me know
 

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