声明预期错误 [英] Declarition Expected Errors

查看:138
本文介绍了声明预期错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

再次向我致敬,放火烧了,再次感谢您的帮助.

我使用以下代码收到声明预期的错误:

Hello its me again, on to a new fire, and thanks again for your help.

I receive declaration expected errors using the following code:

Private WithEvents mConnection As clsConnection
Attribute mConnection.VB_VarHelpID = -1
Private WithEvents mTimer As clsTimer
Attribute mTimer.VB_VarHelpID = -1







and

VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "clsRegistry"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Description = "Allows access to the {application name withheld} registry entrys"
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"

推荐答案

如果您不知道这段代码是用什么写的你深陷其中.我可以告诉你,除非您的应用程序中有一些非常时髦的脚本,否则这不是VB.NET代码.

如果LOOKS类似于VB6表单设计者用来创建的VB6代码.没有直接转换为VB.NET.您只需将其剪贴,然后按常规在VB.NET中布置表单即可.
If you don''t know what this code is written in you''re in deep sh*t. I CAN tell you, unless you''re got some really funky scripting in your app going on that this is not VB.NET code.

If LOOKS like VB6 code that the VB6 form designer used to create. There is no direct conversion to VB.NET. You just scrap this and layout your form in VB.NET as normal.


这篇关于声明预期错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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