获取丰富的编辑库版本

问题描述 投票:4回答:1

全部,

是否可以获取程序使用的RichEdit控件的版本?

| Version    | Class name    | Library      | Shipped with    | New features
|------------|---------------|--------------|-----------------|    
| 1.0        | "RICHEDIT"    | Riched32.dll | Windows 95      |
| 2.0        | "RichEdit20W" | Riched20.dll | Windows 98      | ITextDocument
| 3.0        | "RichEdit20W" | Riched20.dll | Windows 2000    | ITextDocument2
| 3.1        | "RichEdit20W" | Riched20.dll | Server 2003     |
| 4.1        | "RICHEDIT50"  | Msftedit.dll | Windows XP SP1  | tomApplyTmp
| 7.5        | "RICHEDIT50"  | Msftedit.dll | Windows 8       | ITextDocument2 (new), ITextDocument2Old, Spell checking, Ink support, Office Math
| 8.5        | "RICHEDIT50"  | Msftedit.dll | Windows 10      | LocaleName, more image formats

我知道只要加载或不加载Msftedit.dll库,我都可以拥有一些变量并适当地分配它。但是,如果我确实加载了RichEd20.dll,则可以得到RichEdit 2或RichEdit 3的实现。他们是完全不同的。后者中添加了很多东西。

如果我确实加载了Msftedit.dll,则有7.5的功能在早期版本中将不可用(例如,自动拼写检查。)>

甚至可能同一进程可以加载所有三个DLL,甚至可以在同一进程中使用RichEdit的所有三个版本:

  • "RICHEDIT"→1.0
  • "RichEdit20W"→2.0,3.0
  • "RICHEDIT50"→4.1、7.5、8.5
  • 给出RichEdit控件(例如WinForms RichTextBox,WPF RichTextBox,WinRT RichEditBox,VCL TRichEdit)是否可以确定RichEdit控件的版本?

或者也许我可以通过可用的Windows版本以某种方式区分它们?

ALL,是否可以获取程序使用的RichEdit控件的版本? |版本|类名|图书馆|附带|新功能| ------------ | --------------- | -----------...

dll version richedit
1个回答
0
投票

如果使用,您可能会发现以下摘录对读出类名

© www.soinside.com 2019 - 2024. All rights reserved.