Home > Software engineering > Programs written in other computer can not run after compiling, for help
Programs written in other computer can not run after compiling, for help
Time:09-21
On the other computer when open the hint unexpected error, whether other computers on the lack of file My program is mainly used to record, The content of the reference such as the appended drawings
May not in any other computer with vb, excuse me, how to solve, I special leisure,
Programs written by the way, another set of window, close all Windows after the program is still running in the background, how to close the window when the program to close with
CodePudding user response:
Please reply,,,,,,,,,,,,,,,,
CodePudding user response:
1: make the installation package, rather than copy exe, vb own packaging tools,
2: make sure to close all open object, with End to End process
CodePudding user response:
Make the installation package still can't run, other computer prompts by unexpected error into Chinese "unknown error", running on their computer, there is still no problem
CodePudding user response:
Estimate that is a lot of your program code On the Error Resume Next,
VB6 code, in the case of without exception handling, basically will eventually be captured with a VB virtual machine to run the exception and indication error details, Like you this kind of "refers to the type of object", if there is no corresponding "other" computer ActiveX DLL, no corresponding object type registered in the system, When you need to create the object, but not successful creation, are generally will quote "a runtime exception" : "ActiveX components can't create object" information (information is basically the "mean"), Not so wrong after the "unexpected exception",
Solution of course is to understand your this program at run time, What specific use the DLL (the key is you refer to the corresponding DLL library), In "the other" machines, copy it to the system directory as an administrator, and register,
CodePudding user response:
May be ado2.8 conflict, need to use the method of TLB now I x64, x86 computer compiled twice, or just below the xp compile
CodePudding user response:
Development under Win64 a 32-bit program is the rhythm of the fault,
CodePudding user response:
Put your project in WinXP under the compilation and packaging,