473,756 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create Instance from external DLL

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
Nov 20 '05
39 2115
* "Fergus Cooney" <fi******@tesco .net> scripsit:
Where did you take this information from?


From my brain. Sometimes it makes the most startling deductions!!


:-)))

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #31
* "Fergus Cooney" <fi******@tesco .net> scripsit:
There is no ".en".


Did someone say there was?? I missed that bit.


Maybe I misunderstood you...

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #32
Hi Herfried,

|| I will add a link to Google's translation feature in
|| the next release

|| (still working on it).

So's Google. Long way to go yet.

|| The license agreement is written in English.

LOL.

|| I often post links to English language ressources in the
|| German groups,

Where there's a surprisingly (to me) high degree of English spoken.

|| but nobody complained about the fact that the pages
|| were written in an other language

As I've mentioned in other threads, most people don't complain - they just
don't come back.

|| 'lazy'

That's a judgement that may be wide of the mark. There are other reasons
for not doing something - such as the fear* factor that I mentioned. You are
bi-lingual (at least/near enough/for the purposes of comparison/etc). I doubt
whether you'd understand this fear that I'm trying to describe. But then
again, maybe you would.

I think you understand how many VBers wouldn't want to examine C# code
because it's so 'foreign' - yet we both know that underneath the syntax
differences, they have much in common - especially when the code is mainly
concerned with Framework utilisation.

This C# type 'fear' also occurs with the natural languages but with these
it is magnified**. [Other people have this fear with equations and will skip
right over them when reading a book, however innocuous they might be. Others
have it with poetry.]

Regards,
Fergus

* 'Fear' is perhaps too strong a word. I use it in the sense of discomfort at
encountering something which can't be understood - the unknown/unknowable is
somethig to fear. Or, at least, to be moved away from.

** Like most human issues - for <some> people.
Nov 20 '05 #33
Hi Cor,

|| the communicators don't have to know more of
|| English than is necessary to communicate,

We've see plenty of that in both language and typing skills.

|| English speaking people <of any nationality>

Yes - English as an interface (and a very flexible one at that!).

But it would be interesting to see what would happen if a query came here
in a foreign language.

In the vb.winapi there <was> one such topic. The amazing thing is that
someone actually responded to it. See for yourself [http://tinyurl.com/qi1y].
For some reason the full thread isn't there but the missing posts are included
in the ones that <are> there.

Cheers,
Fergus

[Repost - the first one (10:15pm) went to non@non by mistake.]
Nov 20 '05 #34
Sort of. I was saying that it was implied.
Nov 20 '05 #35
* "Fergus Cooney" <fi******@tesco .net> scripsit:
But it would be interesting to see what would happen if a query came here
in a foreign language.


If there is a special group available for the OP's language, I will
redirect him/her to this group. IMO that's the best solution.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #36
* "Fergus Cooney" <fi******@tesco .net> scripsit:
I will add a link to Google's translation feature in
the next release
(still working on it).


So's Google. Long way to go yet.


Update is finished, but I didn't have enough time to include the
translation feature yet.
I often post links to English language ressources in the
German groups,


Where there's a surprisingly (to me) high degree of English spoken.


You are right, most of the Germans speak English, but most of them don't
understand a lot. When reading your posts I don't understand every word.
but nobody complained about the fact that the pages
were written in an other language


As I've mentioned in other threads, most people don't complain - they just
don't come back.


I think if somebody _really_ wants an answer, he will ask for an
explanation of the code. But I remember I already mentioned that.

'lazy'


That's a judgement that may be wide of the mark. There are other reasons
for not doing something - such as the fear* factor that I mentioned. You are
bi-lingual (at least/near enough/for the purposes of comparison/etc). I doubt
whether you'd understand this fear that I'm trying to describe. But then
again, maybe you would.

I think you understand how many VBers wouldn't want to examine C# code
because it's so 'foreign' - yet we both know that underneath the syntax
differences, they have much in common - especially when the code is mainly
concerned with Framework utilisation.


I understand what you mean. From my own experience I can tell you that
I never ignored things I didn't understand. I tried to understand
them. Sometimes it's hard, but there are lots of people here who are
willing to help.
This C# type 'fear' also occurs with the natural languages but with these
it is magnified**. [Other people have this fear with equations and will skip
right over them when reading a book, however innocuous they might be. Others
have it with poetry.]


I don't understand people who have a C# fear. When posting a question
which is related to .NET programming, a solution in every .NET language
will be helpful (if it doesn't make use of features included in a
specific .NET programming language only).

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #37
Hi Herfried,

|| I don't understand people who have a C# fear

Mm, I was hoping, but I'm not that surprised.

Regards,
Fergus
Nov 20 '05 #38
Cor
Hi Herfried,
Did you know there is a special newsgroup for German speaking people
de.entwickler.d otnet.vb

No Herfried, redirecting people who ask in this group gives me immidiatly
the idea of a ghetto when you do it in that way, they do it not for nothing
in this group, like the spanish talking man who said, the spanish group is
bad.

Only when someone ask something in non English, than it can be maybe an
alternative.
And then only if you know that he too is using a Visual.Studio.N et in that
language and he is asking in that language.

My last message in this thread

Cor
Nov 20 '05 #39
* "Cor" <no*@non.com> scripsit:
Did you know there is a special newsgroup for German speaking people
de.entwickler.d otnet.vb
I know this group... I remember I saw you there some weeks ago...
No Herfried, redirecting people who ask in this group gives me immidiatly
the idea of a ghetto when you do it in that way, they do it not for nothing
in this group, like the spanish talking man who said, the spanish group is
bad.
Redirecting makes sense if the OP doesn't know that a group in his/her
language exists. Very often the OP will have a better chance to get an
answer in the group for his language.
Only when someone ask something in non English, than it can be maybe an
alternative.
I am only talking about this case.
And then only if you know that he too is using a Visual.Studio.N et in that
language and he is asking in that language.

My last message in this thread


ACK.

EOT

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #40

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4352
by: Carlo Chung | last post by:
Hi, I have a question about how to retrieve the information of the calling instance, such as instance name, in an external C procedure. Thank you, Carlo Chung
15
3334
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
8
3193
by: Steve Neill | last post by:
Can anyone suggest how to create an arbitrary object at runtime WITHOUT using the deprecated eval() function. The eval() method works ok (see below), but is not ideal. function Client() { } Client.prototype.fullname = "John Smith"; var s = "Client"; eval("var o = new " + s + "();"); alert(o.fullname);
0
1151
by: Markus Stehle | last post by:
Hi all! I need to create an soap envelope that will be sent to an external service using HTTP POST. I created the required classes which are serialized using XmlSerializer. The envelope should look like this: <Envelope xmlns="http://www.w3.org/2001/12/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/12/soap-envelope soap-envelope.xsd">
4
2042
by: slaks | last post by:
During runtime i need to load some dll. Assembly.LoadFile works ok, but when i invoke CreateInstance on some type from this dll it throws me exception because my type depends on dll's which are in the same directory. My question is : how can i create instance when it depends on external dlls which the systems can not locate. Thanks Slava.
9
1329
by: John Salerno | last post by:
Let's pretend I'm creating an Employee class, which I will later subclass for more specific jobs. Each instance will have stuff like a name, title, degrees held, etc. etc. So I'm wondering, is the best way to get all this information into the object to just have a really long __init__ method that takes each argument? Does a question like this depend on how the class will be used? I'm trying to construct it in a way that is independent...
9
3454
by: Grant Schenck | last post by:
Hello, I have a base class with several derived classes: ScriptBase + ScriptCallInbound + ScriptCallOutbound I then have another class: Line
0
1260
by: Beta | last post by:
Does anyone know how to close an embedded word document in C# application without closing an external Word document? The issue is the external Word Document share the same instance (winword.exe) as the embedded application in C#. When the program application get close, the External word Document got close as well. Is there a way to prevent the external word document being close when the program application is close?
1
2083
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi This is from within an EXE that actaully contains the class - No external assembly I would do Class1 myClass = new Class1(); Now I want
0
9255
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9689
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7226
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5119
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5289
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3780
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3326
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2647
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.