programming help (again)

Help each other out

programming help (again)

Postby lar282 on Thu Jul 14, 2005 7:15 am

does anybody know how to load a dll that is dependent to the plugin?

The plugin does not load at all if the dependent dll is not in xlobby directory.I am trying to move out the dependent dll:s from the xlobby dir to a seperate path, but then the plugin wont load.
I'm trying to load the dll:s by Assembly assem = Assembly.LoadFrom(strFile);
but it wont help? I do this in the public section of the plugin but maybe I have to do it somewhere else in the code.


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby stevenhanna6 on Thu Jul 14, 2005 4:17 pm

what if you did this will it work? If not I wonder if its some security setting.

Assembly.LoadFrom(c:\\plugins\\plugin1.dll);
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby lar282 on Thu Jul 14, 2005 5:56 pm

it loads the dll but if I remove the dll from root xlobby dir and place it outside xl dir, then it wont work. Its like XL wants something from my pllugin before I even have the chance to load the assembly.

(thats why I need the debug options too)


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby lar282 on Wed Jul 20, 2005 11:21 am

never got it to work so I will keep the DLL:s in xlobbys dir -:(


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden