Re: Shell Functions and DOS executables
- From: "Lance Wynn" <LanceWynn@xxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jan 2006 16:17:54 -0700
Hi,
Check that the WSHOM.OCX file exists and is properly registered in the
System32 directory. Also, there may be additional files. I don't know
exactly which package is used to install this, but I'll look around and see
if I can find it. Or perhaps somebody else around here knows. You may want
to post a new topic asking what you need to install to get that file.
Lance
"VB_Newby" <VB_Newby@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:43d55f93$0$73347$892e7fe2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Lance,
<Bunch of discussion about calling DOS exe's, "Windows Script Host
Object Model", Tektronix conversion programs, etc --- all snipped>
I took my program to work today to convert some files and ran into
a problem. It wouldn't run under my (work) W2K PC, but would run
under my co-workers XP PC. Obviously, it works under my personal
XP PC too.
Whilst running under the VB5 IDE, I get the following error at the
first line.
Compile Error: "User-defined type not defined",
The offending line(s) is:
Dim wsh As IWshRuntimeLibrary.WshShell <<<< here
Dim wshExec As IWshRuntimeLibrary.wshExec
Dim STDErrResults As String
Dim STDOutResults As String
Whilst running the executable (.EXE) I get the following error:
Run-time Error 429: "ActiveX component can't create object"
I did a bit of groups.googling.... and my uniformed uneducated wild
baseless theory is my W2K machine is missing some DLL?
http://support.microsoft.com/kb/173407
I've gone back to my Shell32.bas for the time being.
Any comments?
(I'm also starting to wonder if 'keeping it simple' might not be a
good idea. I'd like this program to be as platform independent as
possible.... and I'm not really smart enough to achieve this
without keeping things -really- simple and as little dependent on -
outside- routines as possible.)
.
- References:
- Shell Functions and DOS executables
- From: VB_Newby
- Re: Shell Functions and DOS executables
- From: Lance Wynn
- Re: Shell Functions and DOS executables
- From: VB_Newby
- Re: Shell Functions and DOS executables
- From: Lance Wynn
- Re: Shell Functions and DOS executables
- From: VB_Newby
- Re: Shell Functions and DOS executables
- From: Lance Wynn
- Re: Shell Functions and DOS executables
- From: VB_Newby
- Re: Shell Functions and DOS executables
- From: Lance Wynn
- Re: Shell Functions and DOS executables
- From: VB_Newby
- Shell Functions and DOS executables
- Prev by Date: Re: HOWTO Use WebBrowser Control to Open & Edit HTML File
- Next by Date: Re: XP and VB Professional
- Previous by thread: Re: Shell Functions and DOS executables
- Next by thread: Re: Shell Functions and DOS executables
- Index(es):
Relevant Pages
|