473,756 Members | 8,174 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 2114
* "Fergus Cooney" <fi******@tesco .net> scripsit:
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
I will add a link to Google's translation feature in the next release
(still working on it).
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).
The license agreement is written in English.

:-)
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. ;-)


I often post links to English language ressources in the German groups,
but nobody complained about the fact that the pages were written in an
other language and the source was not commented in German. I think
that somebody who isn't lazy will try to get information even on a
non-German/English webpage.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #21
* "Cor" <no*@non.com> scripsit:
I took bablefish, I got it


:-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #22
* "Fergus Cooney" <fi******@tesco .net> scripsit:
Es ist auf Deutsch. Die Leute hier kann nicht verstehen Deutsch (for the
most part).
The code is written in VB.NET, there are many translators available for
free. I won't do any extra work only because some people are lazy.
The chances are pretty high that they'll take one look, say "What the
F*ck??!!", and move on.


People who think like this don't want to get an answer.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #23
* "Fergus Cooney" <fi******@tesco .net> scripsit:
I make suggestions to Herfried, sometimes strongly. On that 'other issue'
I pushed hard. On this one I won't. But it's still always Herfried's choice
what he does, regardless of how I may feel about it. Any changes that he makes
are his.
I don't have enough time to maintain more than one version of the
content. I will never provide C# versions and I will never provide
English language comments.
I think I covered 'EN' - dotnet.language s.vb (en). ;-)
There is no ".en".
ps. Herfried, I hope it amuses you more than anything else to have us
nattering on about you like this. ;-)


I really like the discussion, but it's very OT.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #24
* "Fergus Cooney" <fi******@tesco .net> scripsit:
No, I mean this newsgroup - it's for English speaking people of any
nationality.


Where did you take this information from?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #25
* "Cor" <no*@non.com> scripsit:
I think I covered 'EN' - dotnet.language s.vb (en). ;-)


I understand you wanted to say that Microsoft is only for English speaking
people?


Microsoft doesn't have special groups for English speaking people.

SCNR

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

I really like the discussion, but it's very OT.


On Topic Herfried, we started this thread about the way we have to behave us
in this newsgroup and that is always a On topic.
And if you read it from top till end it is all mixed up with Visual Basic
Language

Cor
Nov 20 '05 #27
* "Cor" <no*@non.com> scripsit:
I really like the discussion, but it's very OT.


On Topic Herfried, we started this thread about the way we have to behave us
in this newsgroup and that is always a On topic.
And if you read it from top till end it is all mixed up with Visual Basic
Language


I read the whole thread and IMO most of it is OT.

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

|| Where did you take this information from?

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

Regards,
Fergus
Nov 20 '05 #29
Hi Herfried,

|| There is no ".en".

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

Regards,
Fergus
Nov 20 '05 #30

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
9384
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9212
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
9973
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9790
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9645
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...
0
8645
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5069
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...
1
3742
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
3276
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.