forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Internet Explorer Version

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Fri Aug 22, 2003 1:09 pm    Post subject: Internet Explorer Version Reply with quote

Here is a unit (the code) to find Internet Explorer version.

Code:

#Find Internet Explorer Version

#Define function,IEVer

# %t = @IEVer()
# %t will be the IE version or null

:IEVer
if @file(@windir(System)\shdocvw.dll)
   if @OK()
   %%out = @verinfo(@windir(System)\shdocvw.dll,V)
   else
   %%out =
   end
end
exit %%out

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 22, 2003 1:13 pm    Post subject: Reply with quote

Nice! Very Happy
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Fri Aug 22, 2003 1:15 pm    Post subject: Reply with quote

I thought so. This can come in very handy
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Aug 22, 2003 1:29 pm    Post subject: Reply with quote

Especially if you're making an application which incorporates the
BROWSER element, then you can check for compatibility. Smile

BTW, if the user doesn't have the right version of IE what will you
app do? Crash with an error? Or just not use the browser?

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Fri Aug 22, 2003 1:34 pm    Post subject: Reply with quote

Good question. I would just check for the IE ver on the app startup, if the version is not right warn the user to upgrade IE then exit out.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri Aug 22, 2003 2:07 pm    Post subject: Reply with quote

Hey Chris!

On my system your routine returns another version than MSIE states in its own About box.

Why not use something like this:

Code:
%%ver = @REGREAD(LOCAL,SOFTWARE\Microsoft\Internet Explorer,Version)


Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Fri Aug 22, 2003 2:12 pm    Post subject: Reply with quote

I thought about that, but, the registry key is different for different versions of IE. On my system, the key is:

LOCAL,SOFTWARE\Microsoft\Internet Explorer\Version Vector,IE

How far off the the DLL version for IE? It should be the same.

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri Aug 22, 2003 2:34 pm    Post subject: Reply with quote

LiquidCode wrote:
I thought about that, but, the registry key is different for different versions of IE. On my system, the key is:

LOCAL,SOFTWARE\Microsoft\Internet Explorer\Version Vector,IE


Damn, that's Microsoft for ya again... Rolling Eyes

LiquidCode wrote:
Main version and first subversion are OK, but the third subversion is different.


Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Fri Aug 22, 2003 2:41 pm    Post subject: Reply with quote

Well, I think most times all the info you would need is the main version. 4, 5 etc... That the important part.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sat Aug 23, 2003 12:02 pm    Post subject: Reply with quote

Microsoft's info on determining IE version and a list of possible versions can be found here:

http://support.microsoft.com/default.aspx?scid=KB;en-us;q164539

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group