vb6 xcopy deployment

后端 未结 4 1471
一整个雨季
一整个雨季 2020-12-09 23:56

Can any one tell me how to convert an legacy application which is vb6 ( COM dll\'s ocx and exes) to use Regfree COM .

I tried opening the dlls in visual studio and

相关标签:
4条回答
  • 2020-12-10 00:00

    To create manifest files you can try to use Make My Manifest from http://mmm4vb6.atom5.com/.

    EDIT The MMM website is down. I see here that the author was having trouble with their hosting and has provided another location to get Make My Manifest - download it here.

    If you can control creation of objects you can use DirectCOM from http://www.thecommon.net/10.html

    Keep in mind that if one of used DLLs or OCXs is creating other COM objects dynamically with CreateObject calls, that reference will not be stored in vbp project file and you won't get full manifest file. Probably you will have to catch object creations while the application is running. Depends.exe application can profile running application and report all used dlls. I don't know if there is tool that can find additional COM related information.

    0 讨论(0)
  • 2020-12-10 00:05

    MakeMyManifest is well spoken of as an automatic tool for creating manifests for VB6 projects, haven't tried it myself. DirectCOM also has fans, again I haven't tried it.

    EDIT The MMM website is down. I see here that the author was having trouble with their hosting and has provided another location to get Make My Manifest - download it here.

    There is a semi-automatic technique. You can create the manifests with Visual Studio 2008 (you can use a free version like Visual Basic Express Edition). Then make a couple of edits by hand to make the manifests suitable for use from VB6. See this section of this MSDN article for step-by-step instructions - ignore the rest of the article which is about ClickOnce.

    0 讨论(0)
  • 2020-12-10 00:08

    There is an excellent walkthrough of what to do in this article on MSDN: Registration-Free Activation of COM Components: A Walkthrough.

    0 讨论(0)
  • 2020-12-10 00:18

    Make My Manifest can accomodate late binding as well as early binding. You simply have to add the references to the late-bound dependencies manually, by file location or by ProgId.

    You might look at http://mmm4vb6.atom5.com/mmm-demo-1248.html for additional help in using the utility.

    0 讨论(0)
提交回复
热议问题