HighTechTalks DotNet Forums  

How to load a dll created via VB use Assembly.LoadFrom

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss How to load a dll created via VB use Assembly.LoadFrom in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
wolf
 
Posts: n/a

Default How to load a dll created via VB use Assembly.LoadFrom - 07-29-2003 , 05:31 AM






There are some dll writed by VB. When I try to load them by
method Assembly.LoadFrom(string), the program throw an exception
to tell me the dll is not valid.

Are these dlls can not be loaded dynamic?

In fact, my goal is that I could invoke the method in these dlls
by pass a dynamic string.For a instance, when I input a string
"method1" in a textfield and click OK button, the method1() method
in a dll should be invoked.

How should I do?

Thanks!



Reply With Quote
  #2  
Old   
vinny
 
Posts: n/a

Default Re: How to load a dll created via VB use Assembly.LoadFrom - 07-29-2003 , 07:21 AM






HI

I think so u have an option to to add the reference in a project with
visual studio.net,did u try that?

"wolf" <xiaozhimin1978 (AT) 163 (DOT) com> wrote

Quote:
There are some dll writed by VB. When I try to load them by
method Assembly.LoadFrom(string), the program throw an exception
to tell me the dll is not valid.

Are these dlls can not be loaded dynamic?

In fact, my goal is that I could invoke the method in these dlls
by pass a dynamic string.For a instance, when I input a string
"method1" in a textfield and click OK button, the method1() method
in a dll should be invoked.

How should I do?

Thanks!





Reply With Quote
  #3  
Old   
wolf
 
Posts: n/a

Default Re: How to load a dll created via VB use Assembly.LoadFrom - 07-29-2003 , 08:44 PM




"Mattias Sjögren" <mattias.dont.want.spam (AT) mvps (DOT) org>
??????:uYcXZ3bVDHA.652 (AT) tk2msftngp13 (DOT) phx.gbl...
Quote:
There are some dll writed by VB.

Classic VB or VB.NET? In other words, is it a COM DLL or a .NET
assembly?
It is a COM dll






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.