Chinese Simplified (简体中文)

在不同版本的 Visual Studio 中使用可视化组件

您可以在以下不同的 Visual Studio 版本中找到可视化组件使用的主要具体细节。

Microsoft Visual Studio 2010

将 ABBYY FineReader Engine 可视化组件添加到 Visual Studio 2010 项目的过程中,您可能会收到一条错误消息。此已知行为的相关详情另请参阅 http://support.microsoft.com/kb/2066987/en-us。可供选择的解决方法为使用 .NET Framework 3.5 进行开发,或者手动安装适合可视化组件的 COM Interop 组件。

如需手动安装 Interop 组件,请执行以下操作:

  1. 适合 .NET Framework 4.0 的 Interop 组件位于 Inc\.Net interops\v4.0 文件夹中。注册 Interop.FREngine.dll 和Interop.FineReaderVisualComponents.dll:
[WindowsFolder]\Microsoft.NET\Framework\v4.0.*.*\regasm.exe [path-to-the-interop-assemblies]\Interop.FREngine.dll /registered /codebase
    [WindowsFolder]\Microsoft.NET\Framework\v4.0.*.*\regasm.exe [path-to-the-interop-assemblies]\Interop.FineReaderVisualComponents.dll /registered /codebase
    
  1. 将 Interop 组件安装到 GAC:
[ProgramFilesFolder]\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe /if [path-to-the-interop-assemblies]\Interop.FREngine.dll
    [ProgramFilesFolder]\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe /if [path-to-the-interop-assemblies]\Interop.FineReaderVisualComponents.dll
    

注: 该方法仅适用于使用 .NET Framework 4.0 的项目。如果您注册上述组件后尝试用 .NET Framework 早期版本进行开发,将无法正常运作。如需使用早期版本,请按以下方式卸载和取消注册 Interop 组件:

  1. 卸载两个 Interop 组件:
[ProgramFilesFolder]\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe /u Interop.FREngine
[ProgramFilesFolder]\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe /u Interop.FineReaderVisualComponents
    
  1. 取消注册 Interop 组件:
[WindowsFolder]\Microsoft.NET\Framework\v4.0.*.*\regasm.exe [path-to-the-interop-assemblies]\Interop.FREngine.dll /u
[WindowsFolder]\Microsoft.NET\Framework\v4.0.*.*\regasm.exe [path-to-the-interop-assemblies]\Interop.FineReaderVisualComponents.dll /u
    

另请参阅

可视化组件参考

创建具有图形用户界面的应用程序

24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.