PC Review


Reply
Thread Tools Rate Thread

Create Instance from external DLL

 
 
Quick Fox
Guest
Posts: n/a
 
      10th Oct 2003
Hi All,

Please help for following case:
How to Load a Assembly from DLL file and create instance
of the class in the loaded file.

I want make a function that get 2 string parameters
(Assembly file Name and Class Name) and create a instance.

Thanks

Quick Fox
 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      10th Oct 2003
* "Quick Fox" <(E-Mail Removed)> scripsit:
> How to Load a Assembly from DLL file and create instance
> of the class in the loaded file.
>
> I want make a function that get 2 string parameters
> (Assembly file Name and Class Name) and create a instance.


<http://www.mvps.org/dotnet/dotnet/samples/codingtechnique/>
-> "PlugIns"

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Fergus Cooney
Guest
Posts: n/a
 
      10th Oct 2003
Hi Herfried,

Es ist auf Deutsch. Die Leute hier kann nicht verstehen Deutsch (for the
most part).

The chances are pretty high that they'll take one look, say "What the
F*ck??!!", and move on.

What do you think?

Regards,
Fergus


 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      10th Oct 2003
Hi Fergus,
And what is the meaning of this message?
Cor


 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      10th Oct 2003
I took bablefish, I got it


 
Reply With Quote
 
Herfried K. Wagner
Guest
Posts: n/a
 
      10th Oct 2003
* Fergus Cooney schrieb:
> Es ist auf Deutsch. Die Leute hier kann nicht verstehen Deutsch (for the
> most part).
>
> The chances are pretty high that they'll take one look, say "What the
> F*ck??!!", and move on.
>
> What do you think?


If somebody really wants an answer, the german text and comments won't
be the problem. If I find a solution to my problem on a _Chinese_ web
page, I will still try to understand it.

--
Herfried K. Wagner
Microsoft MVP
<http://www.mvps.org/dotnet>

 
Reply With Quote
 
Fergus Cooney
Guest
Posts: n/a
 
      10th Oct 2003
Hi Cor,

Herfried often gives links to his part of the mvps.org site. This presents
the visitor with a pageful of German, which most people can't understand, of
course. They then have to navigate to another page of German which explains
the particular topic. Then they have to download a zip of a project, which
presumably is in German as well. (It may not be of course, but it's a
reasonable assumption).

I'm suggesting that most people would run a mile before going through all
that.

When I give links to palmbytes.de, I always give people instructions to
ignore the German and download the project. And I tell them that the project
itself is in English. This way they won't be 'frightened off' before they get
to the useful bit.

Perhaps Herfried could add the same reassurances to his file of links
where they refer to German web pages/sites. Perhaps not. ;-)

Regards,
Fergus


 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      10th Oct 2003
Herfried,

I think you did a while like Fergus said and not because he had asked that.

>>If somebody really wants an answer, the german text and comments won't
>>be the problem. If I find a solution to my problem on a _Chinese_ web
>>page, I will still try to understand it.


And of course like mostly we agree, (and believe that I have stuffed
sentences who did make that more clear) but I think that little sentence
would not be that difficult for your new connector.

(Can you really get things from Chinese web sites, that I never could).
I don't believe you, I think only when it are webs with some translations in
latin characters.

Cor



 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      10th Oct 2003
Hi Fergus,

A minute after that I wrote my answer "I got it" and did send that.

But let's make a nice discussion about behaviour in this newsgroup.

Before you read this, you have to know that I did first make a message to
Herfried wherein I asked him to do what you asked. Not because I fully
agree, but because it is so few extra work to put that extra sentence (I did
this, because I have probably the same feeling about this as Herfried, but
on the other hand think to understand why you ask it).

I think that we have to remember, that probably for the most visitors at
this newsgroup, English is not there major language. They use it and that is
normal, because the program language is too basically in English.

You have to know, that non native English speaking people, sometimes become
a little bit sad about English speaking people, who only know that language
and are thinking that they are speaking the language of the world, while it
is not. To be honest, we measure them about that.

Don't think it are only English speaking people, we in Holland see it often,
the same is with a lot of people from Germany and from France.

Strange is that with Spanish and Italian speaking people it is not. While
Italian is in Europe as much spoken as English and French and I thought
Spanish is Worldwide more spoken than English.

What I write is not about you and most other native speaking English
visitors to this newsgroup and expressly not the regulars.

Therefore I think we can see that extra attention from Herfried (when he
does it) only to be for those who only speak English and have no alternative
for another newsgroup than this, because there is no special EN language
newsgroup for "dotnet.vb.language".

I have seen you helping someone in probably strange language for you, about
a script, for a woman. Did you know what language you were writing?

Cor.







 
Reply With Quote
 
Fergus Cooney
Guest
Posts: n/a
 
      10th Oct 2003
Hi Herfried,

Lol. That's fair enough. I wouldn't be discouraged myself - if the link
and program, name are readable - but I think that Chinese may be stretching it
a bit far - I don't know the Chinese for 'download' so I'd probably miss the
link..

There will be some people who wonder why you give them German, but that's
their tough luck. If they think you're being unhelpful, that's their delusion.
;-)

Regards,
Fergus


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Create Instance of IE via IIS 7 =?Utf-8?B?V2lsbA==?= Microsoft Dot NET 0 19th Oct 2007 07:05 PM
Create 2 instance with the same name Islam Elkhayat Microsoft ASP .NET 2 29th Mar 2005 03:55 PM
Create Instance Islam Elkhayat Microsoft ASP .NET 1 29th Mar 2005 11:42 AM
Create Instance Islam Elkhayat Microsoft C# .NET 1 29th Mar 2005 11:42 AM
How To Create an instance of an object from another instance? Andro Tan Microsoft Dot NET Framework 2 21st Jul 2003 01:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 AM.