473,472 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to load a module through an assembly

Dear Friends,

I'm able to create a class type from a non-referenced assembly using the
LoadFrom and CreateInstance methods of the Assembly type.
But how can I load a module from a corresponding ".dll" using assembly ?
Please anyone help me.

Thanking you,

Regards,
Arun.
Nov 21 '05 #1
2 1034
"Arun" <Ar**@discussions.microsoft.com> schrieb:
I'm able to create a class type from a non-referenced assembly using the
LoadFrom and CreateInstance methods of the Assembly type.
But how can I load a module from a corresponding ".dll" using assembly ?


Modules are classes which are marked with a certain attribute. Check out
the exact structure using "ILDASM.EXE" or Lutz Roeder's Reflector.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Arun schrieb:
Dear Friends,

I'm able to create a class type from a non-referenced assembly using the
LoadFrom and CreateInstance methods of the Assembly type.
But how can I load a module from a corresponding ".dll" using assembly ?
Please anyone help me.

A module is an imported class with shared methods only, so you can't call
CreateInstance, but after retrieving the System.Type object, you can call
InvokeMember (or other methods) to access the type's shared members.
Armin
Nov 21 '05 #3

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

Similar topics

6
by: Praveen Ramesh | last post by:
Hi, Is there anyway I can determine when exactly a module file I have (part of a bigger assembly) gets loaded into memory? The AssemblyLoad event tells me when exactly an assembly gets loaded,...
1
by: mrkurt | last post by:
I've built a few webservices locally that work just fine. Deployed them to a server and I get the following exception. This exception happens on even the most basic webmethod call. Hitting the...
0
by: mathlec | last post by:
I have 2 WebApplication project (dummy and dummy2). The first is trying to load a UserControl compiled in the second. I've set up the application as follow: \_(Virtual directory) .:Modules:.
5
by: Paul Cheetham | last post by:
Hi, I have some custom colour cursors which I have added to my c# project, and set them to be compiled as "Embedded Resource" It seems impossible to load a colour cursor using the standard...
6
by: Steve | last post by:
I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath =...
0
by: Reen | last post by:
Hi, I have a C++ project which I upgraded from Visual Studio.net 2003 to 2005. I am compiling it using /clr:oldSyntax. When I try to load this dll in a C# application (in 2005) using...
4
by: Brian Richards | last post by:
Is it possible to run code in an assembly when it's loaded? In my case I have an assembly that requires that the users path be setup correctly or GetTypes() will throw an exception. Looking for a...
0
by: anderstorkildsen | last post by:
Hi, I have created and deployed a web service, but when I try to browse it on the server it is running, an exception is thrown: ////////// The specified module could not be found. (Exception...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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,...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.