What does “Method '~' of object '~' failed” at runtime mean?

后端 未结 8 1785
耶瑟儿~
耶瑟儿~ 2020-12-01 13:41

I\'m trying to run a legacy VB6 application on my desktop (it doesn\'t have a user interface, being a command-line app), and when I do, I get a message box saying

         


        
8条回答
  •  借酒劲吻你
    2020-12-01 14:46

    For a VB6 program which is run as a command line application there is an extra stage required after compilation: the VB6 linker needs to be run on the executable to set it as a console program:

    \LINK.EXE  /EDIT  /SUBSYSTEM:CONSOLE  .exe
    

    Failure to do this will give the Method '~' of object '~' failed error when the program is run.

提交回复
热议问题