473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

adding a COM dll as reference during runtime

5
hi

i have a COM dll and i want to access the methods in the dll through my program. but i need to add that dll as reference during runtime and not the way references are generally added (project-->add reference-->COM and all that)

can anybody help me out with this plz

thanx
krish
Jul 3 '07 #1
4 1387
dip_developer
648 Expert 512MB
hi

i have a COM dll and i want to access the methods in the dll through my program. but i need to add that dll as reference during runtime and not the way references are generally added (project-->add reference-->COM and all that)

can anybody help me out with this plz

thanx
krish
What is your purpose of adding a dll in runtime???
Jul 3 '07 #2
krishm
5
What is your purpose of adding a dll in runtime???

actually i need to do so because i have a couple of components in more than 1 dll and according to some condition i need to access them.

i'll give u the scenario

switch(some condition)
{
case 1:
// access method from dll1.dll
case 2:
//access method from dll2.dll
case 3:
//access method from dll3.dll
default:
//some default method
}

so according to the condition the appropriate dll would be referenced

plz help me if u can on this matter

thnx and regards

krish
Jul 5 '07 #3
dip_developer
648 Expert 512MB
actually i need to do so because i have a couple of components in more than 1 dll and according to some condition i need to access them.

i'll give u the scenario

switch(some condition)
{
case 1:
// access method from dll1.dll
case 2:
//access method from dll2.dll
case 3:
//access method from dll3.dll
default:
//some default method
}

so according to the condition the appropriate dll would be referenced

plz help me if u can on this matter

thnx and regards

krish
ok fine....then why are you trying to Reference the .dll in runtime.....
you have to call the methods of those dlls in runtime......but why referencing them in runtime????......

add the reference of those dll s while designing your project.....as simple as that....
Jul 5 '07 #4
krishm
5
ok fine....then why are you trying to Reference the .dll in runtime.....
you have to call the methods of those dlls in runtime......but why referencing them in runtime????......

add the reference of those dll s while designing your project.....as simple as that....

thanx a lot for taking intrest

wat u r saying is absolutely correct but i dont want it that way. i already mentioned it thati want to reference the dlls at runtime and not prior to that.

actually they r needed to add at runtime because lets say that the dlls are only available during the runtime.

i just need to know that whether it is possible or not and if yes then how to do it.

plz let me know if u can help

thanks and regards

krish
Jul 5 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Amir Dekel | last post by:
Hi everyone, I have two problems: 1. How can I keep my changes in sys.path after closing the interpreter? 2. os.path.expanduser("~") always gives me "C:\\" instead of my homepath. I have...
8
by: filip stas | last post by:
How do i add references during runtime?
2
by: manohar.shankar | last post by:
Hi, I have been searching on this topic for quite sometime and didnt get any answer. Is there a way I can extend/add methods/properties to a C# class during runtime. eg., I have class:...
4
by: rushikesh.joshi | last post by:
Hi All, I have created my own WebControl and want to add it in my aspx page at runtime. it's compiling perfectly, but when i m going to execute, it gives me error of "Object reference not set...
0
by: krishm | last post by:
hi all i have a problem to which i cant find a way out I have a COM dll which i want to add as a reference during runtime and not like it is done (project>>add reference>>com) can anybody...
5
by: shubhlu | last post by:
hi I have a problem that I have a COM dll and i need to access the methods in that dll. But what is required here is that the dll needs to be added as a reference only during runtime and not...
8
by: Jason | last post by:
Hello, I am trying to utilitze the AJAX Control toolkit in my asp.net project. I have added a reference to AjaxControlToolkit.dll, and in my page, added these lines of code: ...
1
by: ton | last post by:
Hi, I want to add several textbox to my form during runtime: the code is very simple Lab = New TextBox Lab.ID = "A" & i Lab.Height = 200 Lab.Visible = True Lab.Text = "test"
5
by: DBC User | last post by:
I have a situation, where I need to add 4 or 5 data files (they change every time I build) in my project during build time and somehow I need a way to access these files during runtime. So I have...
7
by: chage | last post by:
Hi, I have been searching around to try adding reference assembly to another assembly during runtime, programatically. Is this possible in .Net? The reason for this is because i am having...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.