exe文件不起作用,为什么? [英] Exe file does not work, why?

查看:98
本文介绍了exe文件不起作用,为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello guys



我用vb6创建了一个程序 - 一切正常,除了exe文件。



exe文件因此功能崩溃:



HD_Settings_Save



Hello guys

I created a programm with vb6 - everything works fine, except the exe file.

The exe-file crashs at this funtion:

HD_Settings_Save

'-----------------------------------------------------------

Global gcHDSettings As clsXCollection
 
Public Sub HD_Settings_Save()
On Error Resume Next
Dim i%
For i = 1 To gcHDSettings.Count
Me_Write gcHDSettings.Key(i)
Next
End Sub
 
Private Sub Me_Write(sType$)
On Error Resume Next
SaveSetting App.EXEName, "Settings", sType, gcHDSettings(sType)
End Sub

'-----------------------------------------------------------





我想以下这行



I guess the following line

SaveSetting App.EXEName, "Settings", sType, gcHDSettings(sType)

导致问题,但我仍然不知道原因:S





感谢您的帮助。

Greetings v_tigra

causes the problem, but I still don't know exactly why :S


Thanks for any help.
Greetings v_tigra

推荐答案


On Error Resume Next
SaveSetting App.EXEName, 设置,sType,gcHDSettings(sType)
结束次级

'------------------------- ----------------------------------
) On Error Resume Next SaveSetting App.EXEName, "Settings", sType, gcHDSettings(sType) End Sub '-----------------------------------------------------------





我想以下行



I guess the following line

SaveSetting App.EXEName, "Settings", sType, gcHDSettings(sType)

导致问题,但我仍然不知道原因:S





感谢您的帮助。

问候v_tigra

causes the problem, but I still don't know exactly why :S


Thanks for any help.
Greetings v_tigra


变量gcHDSettings初始化..

以下代码已丢失:
The variable "gcHDSettings" was not initialized..
Following code has been missing:
Set gcHDSettings = New clsXCollection





问候

v_tigra



Greetings
v_tigra


创建一个日志文件,在每行代码的写日志中,然后很容易找到exe文件关闭的行。
Create a log file, in that write log for every line of code then easily find the line where the exe file closes.


这篇关于exe文件不起作用,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆