|
发表于 2022-7-6 23:22:28
|
显示全部楼层
Before I forget, to make your code more 'portable' there's a couple of things you can do:
Instead of coding the entire solution in Main(), consider writing a Method that accepts two arguments, a DWT as String, and a LSP as String. This Method can go into your code library, and can easily be added as a Reference Assembly to any other solution.
Going one step further, these arguments as Strings may not require the file path, provided they both reside within the Support File Search Path (SFSP), as you can use the HostApplicationServices.FindFile() Method... As shown in this thread. Gile's awesome!
HTH |
|