Home windows How to find out the Word version?

How to find out the Word version?

Author

Date

Category

Tell me, please algorithm: how can I find out using C++ the current version of MS Word on your computer? If there are several of them, then the one that is tied to .doc . There will be enough algorithm or names of functions that will help solve the problem quite small amount of code.


Answer 1, Authority 100%

I would stupidly checked the Windows registry, namely the key value (and its plug)

hkey_local_machine \ software \ microsoft \ office

For example, if there is a key: HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Office \ 12.0 – it means 2003 office, well, etc.

cloud of examples about how to find out the key values ​​in the Windows registry Here

Update

There is another option to call through OLE Automation the function VB Application.Version , IMHO The first option is still cheaper


Answer 2, Authority 150%

In the registry at the address HKEY_CLASSES_ROOT \ .DOC You get the value of the variable (default) , which is at the root and there is the value of this type “word.document.8 “, which means” Word 97 8.0 “. You get this value and then define what version it is. Here is the versions table

year Released Name Version Comments
1989 Word for Windows 1.0
1990 Word for Windows 1.1 1.1 Code-Named Bill The Cat
1990 Word for Windows 1.1A 1.1A for Windows 3.1
1991 Word for Windows 2.0 2.0 Code-Named Spaceman SPIFF
1993 Word for Windows 6.0 6.0 Code-Named T3 (Renumbered 6 to Bring Windows Version Numbering in Line With That Of Dos Version, Macintosh Version and Also Wordperfect, The Main Competing Word Processor AT The Time; Also A 32-bit Version for Windows NT ONLY)
1995 Word 95 7.0 Included In Office 95
1997 Word 97 8.0 Included in Office 97
1998 Word 98 8.5 ONLY SOLD AS PART OF OFFICE 97 POWERED by Word 98, Which Was Only Available in Japan and Korea.
1999 Word 2000 9.0 Included in Office 2000
2001 Word 2002 10.0 Included in Office XP
2003 Office Word 2003 11.0 INCLUDED IN OFFICE 2003
2006 Office Word 2007 12.0 INCLUDED IN OFFICE 2007; Released to Busineses on November 30, 2006, Released Worldwide to Consumers On January 30, 2007
2010 Word 2010 14.0 Included In Office 2010

Here article on C #, I think you will not be able to translate to C++ .

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions