Click here to Skip to main content
15,899,313 members
Home / Discussions / C#
   

C#

 
GeneralC# and Crystal Reports Viewer Pin
trevleyb20-Nov-03 13:45
trevleyb20-Nov-03 13:45 
GeneralRe: C# and Crystal Reports Viewer Pin
Heath Stewart20-Nov-03 14:14
protectorHeath Stewart20-Nov-03 14:14 
GeneralExecuting scripts Pin
Alex Korchemniy20-Nov-03 13:13
Alex Korchemniy20-Nov-03 13:13 
GeneralRe: Executing scripts Pin
Heath Stewart20-Nov-03 14:04
protectorHeath Stewart20-Nov-03 14:04 
GeneralRe: Executing scripts Pin
Alex Korchemniy20-Nov-03 14:32
Alex Korchemniy20-Nov-03 14:32 
GeneralRe: Executing scripts Pin
Heath Stewart21-Nov-03 3:16
protectorHeath Stewart21-Nov-03 3:16 
GeneralLeppie, please read Pin
Den2Fly20-Nov-03 10:44
Den2Fly20-Nov-03 10:44 
GeneralRe: Leppie, please read Pin
leppie20-Nov-03 11:28
leppie20-Nov-03 11:28 
Basically:

You define a small assembly with some interfaces

eg.

public interface IFoo
{
  int Bar();
  string Name {get;}
}


Now in the loading assembly , you implement these interfaces, say class ABC : IFoo.

In the loader assembly, you use reflection to find the types in the loading assembly that implements IFoo, which in this case will be ABC. But we dont care what ABC does, only IFoo. So the ABC gets instantiated as an IFoo instance. Now withing your loader assembly, you simply call the interface.

It is a bit more work though, but it will be faster.

leppie::AllocCPArticle("Zee blog");
Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.

GeneralCuz he's a C# wizard, has to be a twist... Pin
Jeremy Kimball20-Nov-03 6:47
Jeremy Kimball20-Nov-03 6:47 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Heath Stewart20-Nov-03 7:24
protectorHeath Stewart20-Nov-03 7:24 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Jeremy Kimball20-Nov-03 7:39
Jeremy Kimball20-Nov-03 7:39 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Alvaro Mendez20-Nov-03 8:21
Alvaro Mendez20-Nov-03 8:21 
GeneralHow do you think he does it? I don't know. Pin
Kentamanos20-Nov-03 8:39
Kentamanos20-Nov-03 8:39 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Giles20-Nov-03 8:55
Giles20-Nov-03 8:55 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Jeff Varszegi20-Nov-03 14:24
professionalJeff Varszegi20-Nov-03 14:24 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
eggie520-Nov-03 16:14
eggie520-Nov-03 16:14 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Nick Parker23-Nov-03 6:22
protectorNick Parker23-Nov-03 6:22 
GeneralClass not registered error Pin
Rekha desai20-Nov-03 5:12
sussRekha desai20-Nov-03 5:12 
GeneralRe: Class not registered error Pin
Heath Stewart20-Nov-03 7:20
protectorHeath Stewart20-Nov-03 7:20 
GeneralSuspend Windows... Pin
nzwy1p20-Nov-03 0:28
nzwy1p20-Nov-03 0:28 
GeneralRe: Suspend Windows... Pin
Heath Stewart20-Nov-03 3:17
protectorHeath Stewart20-Nov-03 3:17 
GeneralTimer trouble -timer "dies" Pin
EnkelIk19-Nov-03 21:09
EnkelIk19-Nov-03 21:09 
GeneralRe: Timer trouble -timer "dies" Pin
mhmoud rawas20-Nov-03 0:21
mhmoud rawas20-Nov-03 0:21 
GeneralRe: Timer trouble -timer "dies" Pin
EnkelIk24-Nov-03 21:54
EnkelIk24-Nov-03 21:54 
GeneralRe: Timer trouble -timer "dies" Pin
Heath Stewart20-Nov-03 3:13
protectorHeath Stewart20-Nov-03 3:13 

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.