本文介绍了标准包含文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 在我的vb6应用程序中,我有一组标准模块,我包含在我的所有应用程序中。但是,当我升级现有应用程序时,它会在应用程序目录中创建这些模块的副本。问题是我无法将这些文件移动到标准位置,然后将我的所有应用程序指向此位置。我查看了不同的新闻组,我找到的最接近的解决方案是使用继承。此解决方案适用于一次又一次地使用标准表单,但是当您想要一次又一次地使用标准模块时似乎不能正常工作。有什么建议吗? 解决方案 我的应用程序中。但是,当我升级现有应用程序时,它会在应用程序目录中创建这些模块的副本 。问题是我不能将这些文件移动到标准位置,然后将我的所有应用程序指向 这个位置。我查看了不同的新闻组和最接近的解决方案 我发现是使用继承。这个解决方案适用于一次又一次地使用 标准格式,但是当你想要一次又一次地使用标准模块时,它似乎不能正常工作再次。任何 的建议? 我会创建一个包含这些方法的类库,并从EXE项目中引用类b库。 - Herfried K. Wagner [MVP] < http://www.mvps.org/dotnet> In my vb6 apps I have a set of standard modules that I include in all of my applications. However, when I upgrade an existing application it creates a copy of these modules in the application directory. The problem is that I can''t move these files to a standard location and then point all my apps to this location. I''ve looked on different newsgroups and the closest solution I have found is to use inheritance. This solution works for using a standard form over and over again, but does not seem to work well when you have standard modules that you are wanting to use over and over again. Any suggestions? 解决方案 my applications. However, when I upgrade an existing application it createsa copy of these modules in the application directory. The problem is that Ican''t move these files to a standard location and then point all my apps tothis location. I''ve looked on different newsgroups and the closest solutionI have found is to use inheritance. This solution works for using astandard form over and over again, but does not seem to work well when youhave standard modules that you are wanting to use over and over again. Anysuggestions? I would create a class library that includes these methods and referencethe class library from your EXE projects. --Herfried K. Wagner [MVP]<http://www.mvps.org/dotnet> 这篇关于标准包含文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-29 02:27