Click here to Skip to main content
15,919,479 members
Home / Discussions / C#
   

C#

 
AnswerRe: Link label transparency... Pin
Joshua Quick18-Feb-06 17:16
Joshua Quick18-Feb-06 17:16 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 3:43
Kasic Slobodan19-Feb-06 3:43 
GeneralRe: Link label transparency... Pin
Joshua Quick19-Feb-06 10:43
Joshua Quick19-Feb-06 10:43 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 14:01
Kasic Slobodan19-Feb-06 14:01 
GeneralRe: Link label transparency... Pin
mav.northwind19-Feb-06 20:08
mav.northwind19-Feb-06 20:08 
GeneralRe: Link label transparency... Pin
Kasic Slobodan20-Feb-06 4:53
Kasic Slobodan20-Feb-06 4:53 
QuestionGetType() fails, but why Pin
User 665818-Feb-06 14:01
User 665818-Feb-06 14:01 
AnswerRe: GetType() fails, but why Pin
darkelv18-Feb-06 14:39
darkelv18-Feb-06 14:39 
Did you try Assembly.Load() instead? It works for me when the plugin is not in the same folder.

I assume you have interface setup for the class, right?

-- modified at 20:57 Saturday 18th February, 2006

[edit] Sorry, I was looking at wrong part of the code, Assembly.Load() was used to check whether the plugin can be loaded. this is where the assembly is really loaded on my app:

Type ObjType=null;
Assembly assembly = null;
assembly = Assembly.LoadFrom(path); <---- full path
if(assembly != null)
{
ObjType = assembly.GetType("you.class.here");
}

if(ObjType != null)
{
object[] args = new object[2];
args[0] = cm;
args[1] = catalog;

this.database = (IDatabaseInterface)Activator.CreateInstance(ObjType, args);
}

-- modified at 21:02 Saturday 18th February, 2006
[edit again]

Some other stuff that I found after 2 painful days of trial and error
1. Have an interface for the class
2. You must put the interface class in a seperate assembly. Putting it in your main assembly won't work.
3. You have to keep the assemblyversion (main, interface, the plugins) a constant and may need to sign the assembly too.
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 2:10
User 665819-Feb-06 2:10 
AnswerRe: GetType() fails, but why Pin
Guffa19-Feb-06 2:17
Guffa19-Feb-06 2:17 
GeneralRe: GetType() fails, but why Pin
darkelv19-Feb-06 2:58
darkelv19-Feb-06 2:58 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 4:08
User 665819-Feb-06 4:08 
GeneralRe: GetType() fails, but why Pin
darkelv19-Feb-06 5:26
darkelv19-Feb-06 5:26 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 5:49
User 665819-Feb-06 5:49 
AnswerRe: GetType() fails, but why Pin
leppie19-Feb-06 6:08
leppie19-Feb-06 6:08 
QuestionSuggestions for a C# Windows project to learn C# Pin
LuluSailor18-Feb-06 12:57
LuluSailor18-Feb-06 12:57 
AnswerRe: Suggestions for a C# Windows project to learn C# Pin
Koushik Biswas18-Feb-06 13:21
Koushik Biswas18-Feb-06 13:21 
AnswerRe: Suggestions for a C# Windows project to learn C# Pin
Colin Angus Mackay18-Feb-06 13:37
Colin Angus Mackay18-Feb-06 13:37 
QuestionGenerating mouse clicks on desktop Pin
shunnyboy18-Feb-06 11:30
shunnyboy18-Feb-06 11:30 
AnswerRe: Generating mouse clicks on desktop Pin
shamsallana18-Mar-06 11:15
shamsallana18-Mar-06 11:15 
Question[VS 2005] Show a context menu by left click a button Pin
Susuko18-Feb-06 10:46
Susuko18-Feb-06 10:46 
AnswerRe: [VS 2005] Show a context menu by left click a button Pin
BambooMoon18-Feb-06 11:20
BambooMoon18-Feb-06 11:20 
GeneralRe: [VS 2005] Show a context menu by left click a button Pin
Susuko18-Feb-06 12:05
Susuko18-Feb-06 12:05 
GeneralRe: [VS 2005] Show a context menu by left click a button Pin
BambooMoon18-Feb-06 13:04
BambooMoon18-Feb-06 13:04 
GeneralRe: [VS 2005] Show a context menu by left click a button Pin
Susuko19-Feb-06 0:35
Susuko19-Feb-06 0:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.