Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - dll configuration

Reply
 
Old 03-14-2008   #1 (permalink)
Cetel Sistemas


 
 

dll configuration

Hi,

I`d like to know if it is possible to configure a dll dinamically. I want to
change the dll.config values and make the dll take those new values.

If this is possible I'd like to go a bit further. I wrote a dll in c#
(usercontrol) which I use as an active X in asp.NET:

<object id="ActiveX" classid="HDControlesX.dll#HDControlesX.AccesoAdmin"
style="width: 150px; height: 100px"></object>

Id like to be able to configure this dll in the server without having to
compile the library again. At the moment, I have to compile the library in
order to make the settings changes work, but what I need is just to change a
file and that the dll takes the new arguments.

Thanks in advance

My System SpecsSystem Spec
Old 03-14-2008   #2 (permalink)
dotNetDave


 
 

RE: dll configuration

Generally, it's standard practice to have settings for an dll sent into it
either via parms in the constructor of the class or properties. DLL's should
not have a configuration file. This way they can be easily used by mutiple
applications.

David

======================================
David McCarter [Microsoft MVP]
www.dotNetTips.com
David McCarter''''s .NET Coding Standards available at:
http://www.cafepress.com/geekmusicart.1654787045


"Cetel Sistemas" wrote:
Quote:

> Hi,
>
> I`d like to know if it is possible to configure a dll dinamically. I want to
> change the dll.config values and make the dll take those new values.
>
> If this is possible I'd like to go a bit further. I wrote a dll in c#
> (usercontrol) which I use as an active X in asp.NET:
>
> <object id="ActiveX" classid="HDControlesX.dll#HDControlesX.AccesoAdmin"
> style="width: 150px; height: 100px"></object>
>
> Id like to be able to configure this dll in the server without having to
> compile the library again. At the moment, I have to compile the library in
> order to make the settings changes work, but what I need is just to change a
> file and that the dll takes the new arguments.
>
> Thanks in advance
My System SpecsSystem Spec
Old 03-14-2008   #3 (permalink)
Cowboy \(Gregory A. Beamer\)


 
 

Re: dll configuration

If you want fully dynamic assemblies, consider looking into Reflection. With
Emit, you can write a complete assembly from scratch. I am not sure about
changing the assembly in the way you envision, however.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

*************************************************
| Think outside the box!
|
*************************************************
"Cetel Sistemas" <CetelSistemas@xxxxxx> wrote in message
news:340280C4-A4A8-4A87-8357-0D212F578C1E@xxxxxx
Quote:

> Hi,
>
> I`d like to know if it is possible to configure a dll dinamically. I want
> to
> change the dll.config values and make the dll take those new values.
>
> If this is possible I'd like to go a bit further. I wrote a dll in c#
> (usercontrol) which I use as an active X in asp.NET:
>
> <object id="ActiveX" classid="HDControlesX.dll#HDControlesX.AccesoAdmin"
> style="width: 150px; height: 100px"></object>
>
> Id like to be able to configure this dll in the server without having to
> compile the library again. At the moment, I have to compile the library in
> order to make the settings changes work, but what I need is just to change
> a
> file and that the dll takes the new arguments.
>
> Thanks in advance

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
OT: HDD Configuration Vista hardware & devices
Ram Configuration Vista installation & setup
UAC configuration ? Vista security
UAC configuration ? Vista security
PC Configuration Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46