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

  • What if you could rapidly grow your business while eliminating the complexity and multiple operating systems, administration and management tools, and security and compliance requirements? See how many good things happen when you standardize on open, flexible infrastructure solutions.

  • Enterprise endpoint backup can satisfy data collection and preservation requirements in a more streamlined and cost-effective manner than traditional e-discovery methods. Enterprise IT teams face increasing challenges as the amount of valuable data living on endpoints continues to grow. Due to the exploding volume, mobility and compliance requirements of enterprise data, the need to collect and preserve that data for the purpose of e-discovery becomes more critical--and more difficult. Traditionally, …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date