Undocumented AFX function : AfxGetClassIDFromString

CAbsWordMngt::CAbsWordMngt() { CString strVersion; CLSID clsid; CoInitialize(NULL); m_Version = 9; if ( AfxGetClassIDFromString("Word.Application.9", &clsid) ) { m_Version = 8; if ( AfxGetClassIDFromString("Word.Application.8", &clsid) ) { m_Version = 0; AfxMessageBox("WinWord version 8 or 9 not installed ..."); return; } } }


Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Protecting business operations means shifting the priorities around availability from disaster recovery to business continuity. Enterprises are shifting their focus from recovery from a disaster to preventing the disaster in the first place. With this change in mindset, disaster recovery is no longer the first line of defense; the organizations with a smarter business continuity practice are less impacted when disasters strike. This SmartSelect will provide insight to help guide your enterprise toward better …

  • Live Event Date: July 30, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT You may already know about some of the benefits of Bluemix, IBM's open platform for developing and deploying mobile and web applications. Check out this upcoming eSeminar that focuses on building an Android application using the MobileData service, with a walk-through of the real process and workflow used to build and link the MobileData service within your application. Join IBM's subject matter experts as they show you the way to build a base …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds