Hi,
I am a c++ programmer who has to debug some VB code as part of a certification I am doing, I understand and have written basic VB code but am a bit confused as to why the code I am trying to build wont work. This code definitely worked before so I am wondering is there any problem with the version of VB I am using (if that sort of problem exists).
I have inserted a snippet of the code below from a file called: frmlogger.frm.
The "Version 5#" (whenever you write in VERSION 5.00 it gets turned into 5#), the "Object =" line and all the "Begin VB." lines are all in red in the VB6 IDE when the form is loaded up. When I type in "Begin VB." the ide does not give me any of the options which are present in the code, ie VB.Form is not there.
When I try and run the code the first error I get is about the VERSION line, I am told its an invalid outside procedure (what does this line do anyway).
I am running Microsoft Visual Basic 6.0(SP3) on a Windows 2000 Machine.
There is probably (hopefully) some stupid reason for this, any help on this matter would be gratefully appreciated.
Thanks,
John
VERSION 5#
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Begin VB.Form frmLogger
Caption = "Logger"
ClientHeight = 9450
ClientLeft = 5295
ClientTop = 1560
ClientWidth = 9600
ControlBox = 0 'False
LinkTopic = "Form1"
NegotiateMenus = 0 'False
ScaleHeight = 9450
ScaleWidth = 9600
Visible = 0 'False
Begin VB.CommandButton Refresh
Caption = "Refresh"
Height = 375
Left = 7920
TabIndex = 10
Top = 720
Width = 1215
End
Begin VB.CheckBox autorefresh
Caption = "AutoRefresh"
Height = 375
Left = 4560
TabIndex = 9
Top = 720
Width = 1335
End
Begin SHDocVwCtl.WebBrowser browser
Height = 4695
Left = 240
TabIndex = 8
Top = 1440
Width = 9015
ExtentX = 15901
ExtentY = 8281
ViewMode = 0
Offline = 0
Silent = 0
RegisterAsBrowser = 0
RegisterAsDropTarget = 1
AutoArrange = 0 'False
NoClientEdge = 0 'False
AlignLeft = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = "res://C:\WINNT\system32\shdoclc.dll/dnserror.htm# End
I am a c++ programmer who has to debug some VB code as part of a certification I am doing, I understand and have written basic VB code but am a bit confused as to why the code I am trying to build wont work. This code definitely worked before so I am wondering is there any problem with the version of VB I am using (if that sort of problem exists).
I have inserted a snippet of the code below from a file called: frmlogger.frm.
The "Version 5#" (whenever you write in VERSION 5.00 it gets turned into 5#), the "Object =" line and all the "Begin VB." lines are all in red in the VB6 IDE when the form is loaded up. When I type in "Begin VB." the ide does not give me any of the options which are present in the code, ie VB.Form is not there.
When I try and run the code the first error I get is about the VERSION line, I am told its an invalid outside procedure (what does this line do anyway).
I am running Microsoft Visual Basic 6.0(SP3) on a Windows 2000 Machine.
There is probably (hopefully) some stupid reason for this, any help on this matter would be gratefully appreciated.
Thanks,
John
VERSION 5#
Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
Begin VB.Form frmLogger
Caption = "Logger"
ClientHeight = 9450
ClientLeft = 5295
ClientTop = 1560
ClientWidth = 9600
ControlBox = 0 'False
LinkTopic = "Form1"
NegotiateMenus = 0 'False
ScaleHeight = 9450
ScaleWidth = 9600
Visible = 0 'False
Begin VB.CommandButton Refresh
Caption = "Refresh"
Height = 375
Left = 7920
TabIndex = 10
Top = 720
Width = 1215
End
Begin VB.CheckBox autorefresh
Caption = "AutoRefresh"
Height = 375
Left = 4560
TabIndex = 9
Top = 720
Width = 1335
End
Begin SHDocVwCtl.WebBrowser browser
Height = 4695
Left = 240
TabIndex = 8
Top = 1440
Width = 9015
ExtentX = 15901
ExtentY = 8281
ViewMode = 0
Offline = 0
Silent = 0
RegisterAsBrowser = 0
RegisterAsDropTarget = 1
AutoArrange = 0 'False
NoClientEdge = 0 'False
AlignLeft = 0 'False
ViewID = "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
Location = "res://C:\WINNT\system32\shdoclc.dll/dnserror.htm# End