Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: c# Reflection  (Read 177 times)
Venus
Community Member
*
Posts: 22


« on: September 08, 2008, 06:49:48 PM »

Trying to figure out how to work reflection with the tv assembly. I am having trouble accessing the MTV3D65.dll. I know the code works with mscorelib.dll.

Is there some special trick I am totally missing?

This is a quick test for accessing the dll. It works when I load mscorelib.dll but not MTV3D65.dll
Code:
private void TestTVReflect()
        {
            Assembly a = Assembly.Load("mscorelib.dll);
            Type[] Types = a.GetTypes();

            foreach (Type t in Types)
            {
                Console.WriteLine("Type is " + t);
            }
        }
Logged

Venus
This is why I take so long to program
http://www.spectraledge.com/LexLoomis
varholl
Community Member
*
Posts: 14


« Reply #1 on: September 08, 2008, 10:15:19 PM »

I just told you on the IRC but i this might be here too, since could be a solution for another one.

Assembly.LoadFrom(dllPath);

That's it Smiley

Assembly.Load takes a assembly name, and not a file path.
if you can't load the assembly just by the name.. you can use Assebmly.LoadFrom.

Cheers! Cheesy
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks