waytech2003
Programmer
In many of my programs, created on an XP SP3 computer using VB6 SP6, I have used "Windows Shell Controls and Automation" to get certain information as seen below.
When compiled on the XP system, the programs will run on ME, XP, and Win7. If compiled on the Win7 system, they will not run on ME, or XP. I get an error "Runtime Error 430, Class does not support automation or does not support expected interface"
Is there a way to fix this?
Code:
Private Sub Form_Load()
With New Shell32.Shell
MsgBox .NameSpace(ssfCOMMONAPPDATA).Self.Path
End With
End Sub
When compiled on the XP system, the programs will run on ME, XP, and Win7. If compiled on the Win7 system, they will not run on ME, or XP. I get an error "Runtime Error 430, Class does not support automation or does not support expected interface"
Is there a way to fix this?