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

  • Today's agile organizations pose operations teams with a tremendous challenge: to deploy new releases to production immediately after development and testing is completed. To ensure that applications are deployed successfully, an automatic and transparent process is required. We refer to this process as Zero Touch Deployment™. This white paper reviews two approaches to Zero Touch Deployment--a script-based solution and a release automation platform. The article discusses how each can solve the key …

  • Intelligent N+X Redundancy, Placement Affinities, & Future Proofing in the Virtualized Data Center Virtualization brought about the ability to simplify business continuity management in IT. Workload portability and data replication capabilities mean that physical infrastructure failures no longer need impact application services, and they can rapidly be recovered even in the event of complete site failure. However, Enterprises and Service Providers face new challenges ensuring they have enough compute …

Most Popular Programming Stories

More for Developers

RSS Feeds

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