I have a VB 6.0 project that suddenly started giving me an error on compile
The particular code area that errors out first is :
Private Sub Picture1_Click()
Dim objPic As Picture [<= ERRORS HERE]
Set objPic = LoadPicture(ActiveFileLoca
tion & "Images\class_small_down.j
pg")
Set Picture1.Picture = objPic
idPassed = 0
frmClassesEntry.Show
Set objPic = LoadPicture(ActiveFileLoca
tion & "Images\class_small.jpg")
Set Picture1.Picture = objPic
End Sub
I originally wrote this application some time ago; and I've added to its capabilities many times through the past couple of years. There are many things included in it, including a number of Crystal Reports, external OLE calls to Microsoft IE to gather Web information automatically, etc.
At any rate, it suddenly simply will not compile. I've played around a good bit with the Components and References, thinking that was the obvious answer. Currently, Components, Designers, and References are (I just listed everything!):
COMPONENTS:
Crystal ActiveX Query Viewer 1.0 Type Library
Crystal Report Control
Crystal Report Viewer Control
Crystal Select Expert OLE Control Module
Microsoft ADO Data Control 6.0 (SP6) (OLEDB)
Microsoft Common Dialog Control 6.0 (SP6)
Microsoft DataGrid Control 6.0 (SP6) (OLEDB)
Microsoft DataList Controls 6.0 (SP6) (OLEDB)
Microsoft Internet Controls
Microsoft Masked Edit Control 6.0 (SP3)
Microsoft PictureClip Control 6.0 (SP3)
Microsoft Rich Textbox Control 6.0 (SP6)
Microsoft Tabbed Dialog Control 6.0 (SP6)
Microsoft Windows Common Controls 6.0 (SP6)
Microsoft Windows Common Controls-2 6.0 (SP6)
DESIGNERS:
Crystal Reports 8
Data Environment
Data Report
DHTML Page
Microsoft Forms 2.0 Form
WebClass
REFERENCES:
Visual Basic For Applications
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
Crystal Report Viewer Control
Cyrstal Report 8 ActiveX Designer Run Time Library
Crystal Report 8 ActiveX Designer Design Time Library (Internal)
Crystal ActiveX Query Viewer 1.0 Type Library
Crystal Report 8 Standard Wizard library
Crystal Report Engine 8 Object Library
Crystal Report Export
Crystal Report Viewer Control
Crystal Reports 8 Library
Crystal Data Object
cryptext 1.0 Type Library
Microsoft Management Console 2.0
Microsoft Internet Controls
Microsoft ActiveX Data Objects (Multi-dimensional) 2.8 Library
Microsoft Data Report Designer 6.0 (SP4)
Microsoft Data Source Interfaces
Microsoft ActiveX Data Objects 2.5 Library
Microsoft DAO 3.6 Object Library
Microsoft ActiveX Data Objects Recordset 2.8 Library
Any help anyone can give me would be GREATLY appreciated. Thanks!
estewb
Start Free Trial