DLL Loading......

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

You can try to use the Low-level unmanaged reflection API, this can be found in the .NET Framework samples under the Tools directory.
 
You cannot load non .Net DLL's in this manner. The DLL must have metadata
and legacy DLL's don't.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
 
Good morning.
Im building a little utility that load dll and show me all his properties
and methods.
somthing like the object browser.
but i have a big problem with it.
when im loading a .net dll everything is fine , but when im loading vb6 dll
, the dll can not be loaded.
anyone knows how to solve it?

im using the assembly method to do it.:
a = Assembly.LoadFrom("c:/utils.dll");

Thanks.
 
You can use TLBINF32.dll in system32 directory to read non .Net dll's tlb
information.
The article below maybe help you understand more.

"
Visual Basic: Inspect COM Components Using the TypeLib Information Object
Library
"
December 2000, MSDN Magazine
 
I cant find it.
can you direct me to online resources???
thanks!


Nadav said:
You can try to use the Low-level unmanaged reflection API, this can be
found in the .NET Framework samples under the Tools directory.
 
Look at '...\FrameworkSDK\Tool Developers Guide\docs\'
You may need to download the Framework SDK...
 
I was aware of this for COM but the original poster didn't mention COM
except by inference to vb6 DLL which I should have guessed I suppose :-(


--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
 
Back
Top