5.46 FAQ-802 When I run a COM example built by VB, I saw a missing DLL error message. How do I solve the problem?

Last Update: 7/31/2018

If you run some of our build-in COM examples that are built by VB, such as SendTextDataToWks.exe under <Origin folder>\Samples\COM Server and Client\VB\SendTextDataToWks, you may get an error message saying:

Class not registered. 
You need the following file to be installed on your machine. MSSTDFMT.DLL.

To work around this problem,

  • If you have 64-bit OS:
    1. Downloading MSSTDFMT.DLL. Save it to C:\Windows\sysWOW64 folder.
    2. Stay in sysWoW64 folder and locate the file cmd.exe.
    3. Right click cmd.exe and select Run as administrator. The Command Window appears with
      C:\Windows\system32>_
    4. Type in Regsvr32 C:\Windows\SysWOW64\MSSTDFMT.DLL
    5. Now on the Command Window entry you have:
      C:\Windows\system32>Regsvr32 C:\Windows\SysWOW64\MSSTDFMT.DLL
      Press Enter.
  • If you have 32-bit OS:
    1. Downloading MSSTDFMT.DLL. Save it to C:\Windows\system32 folder.
    2. Stay in system32 folder and locate the file cmd.exe.
    3. Right click cmd.exe and select Run as administrator. The Command Window appears with
      C:\Windows\system32>
    4. Type in Regsvr32 C:\Windows\system32\MSSTDFMT.DLL
    5. Now on the Command Window entry you have:
      C:\Windows\system32>Regsvr32 C:\Windows\system32\MSSTDFMT.DLL
      Press Enter.

Keywords:SendTextDataToWks, windows 8, MSSTDFMT.DLL, VB, COM