Cannot run demonstration project under Windows 95/NT

Summary

Id: 13463.6
Type: Question Question
Current Status: Open

Detail

18 Nov 2003 Resolved Steve McMahon

The Shell32.DLL error is in the Demo app, and this is what's stopping the demo exes from running.

It uses a Shell feature that is only available in Win98/2000 and above. You will need to remove this to run on Win95 and change the demo code as follows.

First, replace PrepareImageList with this version:

Private Sub PrepareImageList()
   
   ' Assign it to all of the TreeView controls:
   tvwDemo.ImageList = vbalImageList1.hIml
   tvwColours.ImageList = vbalImageList1.hIml
   tvwNumbers.ImageList = vbalImageList1.hIml
   tvwHistory.ImageList = vbalImageList1.hIml
 
End Sub

Second, in the AddToTree sub, change all occurrences of this code:

IIf(tvw.BackColor = &H0, Int(Rnd * vbalImageList1.ImageCount),
    m_cIml.ItemIndex(m_colKey(CStr(Int(Rnd * m_colKey.count)))))

to:

Int(Rnd * vbalImageList1.ImageCount)
18 Nov 2003 Open Ed Porter

I am having a bit of a problem getting it going (I have tried all my VbAccelerator tricks!). I cannot get the VB6 version to load into the VB IDE correctly. (I am using VB6 with Service Pack 5 / Win 95). I can get the VB5 version to load okay.

When I attempt to run the version, I get a Shell32 error (the Reference menu states that Shell32.dll is missing). I can locate the Shell32.dll that was sent with the MicroSoft products - do you have a different version that I need to reference?