It is sometimes necessary to determine the version of Microsoft Internet Explorer installed on a machine. This can be done by reading a Registry Key, but the process is a bit cumbersome, and yields a character string that may be hard to decipher.
The function GET_MSIE_VERSION gets the relevant information in one easy call, and the values are returned as integers.
The routine is available as part of the C++ source file EXAM53.CPP. The routine has the following footprint:
The two integer arguments are interpreted as follows:
You can download the file in ZIP format
by clicking on the following link.
This works for Microsoft Windows 95/98/ME/NT/2000/XP/2003/Vista.
I have tested with Visual C++ v6.0 but it should work with other versions
also.
I believe it works with all IE versions after 4.0 and may work with
some before that.
Please let me know of exceptions.
After downloading, unzip the file Exam53.cpp into any folder.
It contains a short Win32 program which demonstrates how to
call GET_MSIE_VERSION.
A note on compiling:
From the Visual Studio IDE, select File -> New and then select
"Win32 Application" as the project type.
If you have any questions please send them to the e-mail address below.
Disclaimer:
Return to Ravi's Free Software Page
int GET_MSIE_VERSION(int *,int *)
where all values are returned by the routine.
The function return value is 0 for success, and non-zero for an error condition.
1st : Major Version Number (e.g. 5 for IE version 5.50)
2nd : Minor Version Number (e.g. 50 for IE version 5.50)
This site contains some software that I've written over the years.
It is believed to work, but there is no warranty.
Please use at your own risk.
If you notice any bugs please let me know by email at
kochhar@physiology.wisc.edu.
Return to Ravi's Home Page
Back to The Basement
This page last modified on : July 3, 2008