skibbs
September 10th, 2002, 04:12 PM
Hi,
I am writing an application that we will use to grab thousands of photos via the web every day, I am trying to combine our 4 programs(written in VB, C++, Java) into one program written in C#, to minimize maintenance costs and hassle and to improve reliability. Currently, we have 4 programs that work together to accomplish this task but it is very hard to maintain them all and the reliability is pretty good, but could be better. I will pull the ID number from a SQL server, and then I need to format that into an URL.. For example...ID=123456, URL=http://www.windows.com/56/123456.jpg The URLs are different for every area that we do, and URLs change so we need to be able to easily edit the URL building process for every area without having to recompile. I was thinking that somebody could edit a string that would contain the necessary URL building code, and then that string could be evaluated as a dynamic expression on the fly... so we would not have to recompile once a week and people could make changes when I am not around... Anybody have some suggestions for a windows application(not web, and won't be running on a box with ASP or anything - just win2000 pro). I would really appreciate some help on this, I'm pretty stuck.
1. JScript class using their eval() - Does anybody know where I can get more info on creating and using a JScript class in my c# project?
2. Compile on the fly (seems way too complex, and not easy enough for coworkers to use when I'm not around)
3. Are there any other options?
I am writing an application that we will use to grab thousands of photos via the web every day, I am trying to combine our 4 programs(written in VB, C++, Java) into one program written in C#, to minimize maintenance costs and hassle and to improve reliability. Currently, we have 4 programs that work together to accomplish this task but it is very hard to maintain them all and the reliability is pretty good, but could be better. I will pull the ID number from a SQL server, and then I need to format that into an URL.. For example...ID=123456, URL=http://www.windows.com/56/123456.jpg The URLs are different for every area that we do, and URLs change so we need to be able to easily edit the URL building process for every area without having to recompile. I was thinking that somebody could edit a string that would contain the necessary URL building code, and then that string could be evaluated as a dynamic expression on the fly... so we would not have to recompile once a week and people could make changes when I am not around... Anybody have some suggestions for a windows application(not web, and won't be running on a box with ASP or anything - just win2000 pro). I would really appreciate some help on this, I'm pretty stuck.
1. JScript class using their eval() - Does anybody know where I can get more info on creating and using a JScript class in my c# project?
2. Compile on the fly (seems way too complex, and not easy enough for coworkers to use when I'm not around)
3. Are there any other options?