TIA, Jason
Are you using early binding?Does your RegExp Reference look like this?
Open your project file and check the references:
Reference=*\G{3F4DACA7-160D-11D2-A8E9-00104B365C9F}#5.5#0#..\SYSTEM\VBSCRIPT.DLL\3#Microsoft VBScript Regular Expressions 5.5
You might try using Late Binding and CreateObject on the Win95 client.
The distribution issues can get very complicated. Does the Win95 client
have a complete WSH install? including IE 4.01+?
What is the complete error message for the crash?
Later,
Mark Pryor
TIA, Jason
"Mark_Pryor" <erlan...@hotmail.com> wrote in message
news:e0YwtKD8$GA...@cppssbbsa02.microsoft.com...
Also, copy the dll and registry entries is usually a risky act, as you
might be missing some dependencies and what is being done during the
intended installation of the program.
If you want to redist the VBScript.dll but don't want your users to run
scr55en.exe manually, there are a few options.
1) Redist IE5.5 via IEAK, so it will create a package for you with all the
preferences that you want. And with the side effect of having VBScript 5.5
in all user machines. See
http://www.microsoft.com/windows/ieak/en/default.asp for details in IEAK.
This might be your best option.
2) If that doesn't work for you, you could push it out using SMS and run
scr55en that way.
3)Well you might not have SMS installed in your company, you could write a
vbs/wsh file as a log on script to windows, so your users' machines will
run that automatically during log on.
4) Or you could create an ActiveX control to run the installation and put
it on a web page.
5) Of course, there might be some other ways to do so.
Joshua Lee
Microsoft
Thanks, Jason
""Joshua Lee"" <joshual...@microsoft.com> wrote in message
news:XYwTANS8$GA...@cppssbbsa01.microsoft.com...
In any case, your original problem is simply one related to early binding.
You compiled your VB app with early binding on machine A with the newest (5.5) vbscript RegExp.
That ties it to the new RegExp interface id (IID). The old IID is still there but it isn't the
default interface so in VB you can't bind to the old IID (you don't want to anyway since you want
the new features).
Now you run your app on machine B that has an earlier version of vbscript and a version of RegExp
with only the old IID. VB queries the RegExp object for the new IID to which it responds "say
what?...".
Now suppose you had done the reverse - compiled on B with an old RegExp early bound to the one and
only (old) IID. Now you run on A with the new RegExp which supports both the old and new IIDs.
When VB queries for the old IID, it happily responds.
You can avoid this (sort of) by using late binding - CreateObject() and a generic variant or object
variable. Of course you can't use anything new features - you have to limit yourself to the "lowest
common denominator" but at least the app won't crash...
--
Michael Harris
MVP Scripting
"Jason" <jason...@mail.state.ky.us> wrote in message news:OuFoWTa8$GA.282@cppssbbsa05...
Is there a version of vbscript that supports early binding from VB 6.0?
In article <#6OMx2f8$GA.196@cppssbbsa05>,
"Michael Harris" <Please...@To.NewsGroup> wrote:
>
> You compiled your VB app with early binding on machine A with the
newest (5.5) vbscript RegExp.
Sent via Deja.com http://www.deja.com/
Before you buy.
--
Michael Harris
Microsoft.MVP.Scripting
--
<ista...@my-deja.com> wrote in message news:8nht0g$3t3$1...@nnrp1.deja.com...