Unless you meant to write something slightly different to what you did...
you've lost me now...
Alex's approach works for managed dlls (C# or VB.NET).
For placing unmanaged dlls in specific folders there were instructions in
the previous replies (Paul's in particular)
Finally, my £0.02 says you should not be adding any of this complexity for
the sake of nice directory structure; just my opinion :-)
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
"Peter" <pvdacker@N0_SPAM_home.nl> wrote in message
news:(E-Mail Removed)...
> Thanks Daniel,
>
> That did the trick.
> I noticed that this only works for DLL's not written in C# but only for
> DLL's written in C++ , am I correct ?
>
> Regards
> Peter.
>
>
> "Daniel Moth" <(E-Mail Removed)> schreef in bericht
> news:%(E-Mail Removed)...
>> Move the 3 Loads into Main
>>
>> Cheers
>> Daniel
>> --
>> http://www.danielmoth.com/Blog/
>>
>>
>> "Peter" <pvdacker@N0_SPAM_home.nl> wrote in message
>> news:(E-Mail Removed)...
>> > Alex,
>> >
>> > using System.Reflection;
>> >
>> > namespace myApp
>> >
>> > public class frmMain : System.Windows.Forms.Form
>> >
>> > {
>> >
>> > public frmMain()
>> >
>> > {
>> >
>> > InitializeComponent();
>> >
>> > }
>> >
>> > Assembly.LoadFrom("\path\to\MyLib.dll")
>> > Assembly.LoadFrom("\path\to\MyOtherLib.dll")
>> > Assembly.LoadFrom("\another path\to\YetAnotherLib.dll")
>> > static void Main()
>> >
>> > {
>> >
>> > Application.Run(new frmMain());
>> >
>> > }
>> >
>> > }
>> >
>> >
>> > with compiling I get a error "Invalid token '(' in class, struct, or
>> > interface member declaration.
>> >
>> > Assembly a = Assembly.LoadFrom("\path\to\MyLib.dll") is compiling ok
>> >
>> > What could be wrong ?
>> >
>> > Thanks Peter.
>> >
>> >
>> >
>> >
>> > You don't even need to assign the result anywhere:
>> > Assembly.LoadFrom("\path\to\MyLib.dll")
>> > Assembly.LoadFrom("\path\to\MyOtherLib.dll")
>> > Assembly.LoadFrom("\another path\to\YetAnotherLib.dll")
>> >
>> > --
>> > Alex Feinman
>> > ---
>> >> Alex, do you mean :
>> >>
>> >> Assembly a = Assembly.LoadFrom("\path\to\MyLib.dll")
>> >> Assembly b = Assembly.LoadFrom("\path\to\MyOtherLib.dll")
>> >>
>> >> or is this wrong ?
>> >
>> >
>>
>
>