Link to home
Start Free TrialLog in
Avatar of ISC
ISC

asked on

Reference "Wscript.Shell"

Hi,

If I do not want to use late binding for "Wscript.Shell"...What reference do I need to add in my VB6 project?

  Set m_objEventViewer = CreateObject("Wscript.Shell")

Thanks Ian
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi ISC,

From memory it is "Microsoft Scripting Runtime"

Tim Cottee
Avatar of ISC
ISC

ASKER

Tim,

I am typing "Private m_objEventViewer  as "  and the intelli sense box appears but there does not seem to be an entry for
"Wscript.Shell" in the box....

Ian
Avatar of ISC

ASKER

Tim,

I should have added....I have included the "Microsoft Scripting Runtime" in my project.

Ian
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ISC

ASKER

Tim,

I have the same problem with my memory....

Thanks for your help!  Ian
wscript.exe
Microsoft (r) Windows Based Script Host

The best thing to do it just browse to your system32 folder and get it there, then you will see what it is referenced to, instead of looking for it in the list, just remember that it is an Active X EXE, so change your search filter when browsing.

Hope this helps you
goto Project Menu -> References
and select          Microsoft WMI Scripting V1.1 Library