Home All Groups Group Topic Archive Search About

Bind dinamicly dlls without createobject

Author
9 Jan 2006 10:17 AM
Halimaji Nijazi
Hi

I like to bind dll (which were written in .net) on runtime without using
createobject.

What I am trying to do is following:

I have a folder where I like to store some dlls. My program must be able to
read the dlls a call known functions from these dlls, without installing
them and so...

Is this possible?

Thanks for the answers

Nijazi Halimaji

Author
9 Jan 2006 12:01 PM
Ken Tucker [MVP]
Hi,

            You can do it with activator.createinstance and
assembly.loadfrom
http://search.msdn.microsoft.com/search/results.aspx?qu=activator.createinstance&View=msdn&st=b

http://msdn2.microsoft.com/1009fa28.aspx

Sample written by Billy Hollis
http://www.dotnetmasters.com/Downloads/LoadingFormsOnTheFly.zip


Ken
-----------------------
Show quoteHide quote
"Halimaji Nijazi" <t***@hotmail.com> wrote in message
news:uiXUbXQFGHA.2040@TK2MSFTNGP14.phx.gbl...
> Hi
>
> I like to bind dll (which were written in .net) on runtime without using
> createobject.
>
> What I am trying to do is following:
>
> I have a folder where I like to store some dlls. My program must be able
> to read the dlls a call known functions from these dlls, without
> installing them and so...
>
> Is this possible?
>
> Thanks for the answers
>
> Nijazi Halimaji
>
Author
9 Jan 2006 2:58 PM
Herfried K. Wagner [MVP]
"Halimaji Nijazi" <t***@hotmail.com> schrieb:
> I like to bind dll (which were written in .net) on runtime without using
> createobject.

As said in the German VB.NET group:

'Assembly.Load*', 'Activator.CreateInstance':

<URL:http://dotnet.mvps.org/dotnet/samples/techniques/#PlugIns>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
12 Jan 2006 12:59 PM
R. MacDonald
You might also find the following references interesting for this
requirement:

    http://staff.develop.com/woodring
    http://www.codeproject.com/csharp/dyninvok.asp

Cheers,
Randy


Halimaji Nijazi wrote:

Show quoteHide quote
> Hi
>
> I like to bind dll (which were written in .net) on runtime without using
> createobject.
>
> What I am trying to do is following:
>
> I have a folder where I like to store some dlls. My program must be able to
> read the dlls a call known functions from these dlls, without installing
> them and so...
>
> Is this possible?
>
> Thanks for the answers
>
> Nijazi Halimaji
>
>