Relection in Remoting

Relection in Remoting

Post by Ryan Lu [M » Thu, 10 Oct 2002 15:51:17



Hi Joe,

Sorry for the delay due to OOF these days. If the problem still exists,
please try to use following code and have another test:

/////////////////////////////////////////////////////////////////
Assembly ab1 = Assembly.LoadFrom( "B1.dll");
Assembly ab2 = Assembly.LoadFrom( "B2.dll");

object b1 = ab1.CreateInstance("B.ClassB");
object b2 = ab2.CreateInstance("B.ClassB");

MethodInfo m = b1.GetType().GetMethod("testmethod");
Console.WriteLine(m.Invoke( b1, null ));
m = b2.GetType().GetMethod("testmethod");
Console.WriteLine(m.Invoke( b2, null ));

BTW, you do not need to add any reference to B.dll or B2.dll when
compiling/running your code.

Best regards,

Ryan
Microsoft

The posting is provided "AS IS" with no warranties, and confers no rights.

 
 
 

1. .NET Add-ins in Excel do not show up in Add-ins

Has anyone been successful in adding custom built-in functions into
Excel via the .net XP Interop assemblies?

According to MS KB 316723, you have to make sure you build the
deployment project for the Current User, not the machine.  I did that.

Also, in the Add-in path for Excel, I added a string called "Automation"
(from a support call to Microsoft) ... but
alas ... no add-in after I install.

Anyone get this to work?

--mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

2. EZCD 4.02c creates new problem

3. Creating inner classes using relection

4. Can sb please check - quite silly qu really

5. Creating Office Managed COM Add-Ins with Visual Studio .NET

6. Won't upload! Please help me.

7. Outlook COM Add-ins With .NET

8. Inserting wave file in front page

9. Writing MMC Snap-ins in VB.Net

10. ANN: using DirectX plug-ins (audio effects) in managed apps

11. Creating Office Add-ins with VB.NET

12. VS.NET add-ins events

13. Can add-ins extend the Server Explorer?