|
 |
asp_components thread: Multi component problem.
Message #1 by Oleg Kapeljushnik <c-oleg.kapeljushnik@w...> on Mon, 19 Nov 2001 12:18:34 -0500
|
|
Hi All !
I have a question .
If there are anyway to install the same component on the same machine few
times ?
For example :
I have a component called TEST.DLL.
I am using next line to make a call Set obj
Server.CreateObject("TEST.Method")
but I have to create few components, mostly the same, but for different
environments.
so I created TEST_ENV1.DLL,TEST_ENV2.DLL etc'. I also had to recompile every
DLL. :(
I was wondering if there are other easier way to do it, that I don't need to
recompile
it every time.
Thanks in advance.
Oleg
Message #2 by "Bruce J. Pezzlo" <bpezzlo@p...> on Mon, 19 Nov 2001 20:28:12 -0500
|
|
Just some thoughts that might give you some ideas ... I'm not clear what
your doing so hope this helps:
I'm not sure why you need to change the dll for different environments,
but perhaps using a resource file would help. Simply set a resource
file with the settings that change from one enviro to another, without
having to recompile.
If its code that is different ... can you deal with it logically within
your code using some case statements, and possibly the windows
registry.?
Or is it that you are in a qa lab where you have to support multiple
versions of your product ... maybe a product like symantec ghost
(complete system images) could help?
As it stands, you shouldn't need to re-register the component if you
keep the interface the same from one dll to another, just use binary
compatibility when you compile the code. Then you can copy of the dll
with the one you need at the moment.
Also, look into MTS, perhaps have packages on different computers that
you can reference as if they were local would help?
Of all the suggestions, my guess is that you want to look into a single
dll that is smart enough to know what code to branch to based upon some
environmental setting you keep on computer or deduce at run-time.
Bruce
---
Bruce Pezzlo
MCSD & MCDBA
President
PLUM Computer Consulting, Inc.
(617) 266 - 1942 x201
Fax: (617) 267 - 0895
bpezzlo@p...
|
|
 |