The following steps describe how to work with the API to control QMF for Windows:
If you are using Microsoft Visual Basic, add a reference to the QMF for Windows type library, qmfwin.tlb. Then use the Dim statement:
Dim QMFWin As New QMFWin
Or, use the CreateObject statement:
Dim QMFWin As Object Set QMFWin = CreateObject("QMFWin.Interface")
If you are using Microsoft Visual C++ and MFC, create a wrapper class for the QMF for Windows API object from the QMF for Windows type library qmfwin.tle. Then use the CreateDispatch(() function:
COleException e; IQMFWin QMFWin; QMFWin.CreateDispatch("QMFWin.Interface", &e);