下面的函数是该链接
http://msdn2.microsoft.com/zh-cn/library/f1f367bx(VS.80).aspx
提供的c#中实现word查找功能的函数:
private void RangeFind()
{
object findText = "find me ";
Word.Range rng = this.Paragraphs[2].Range;
rng.Find.ClearFormatting();
if (rng.Find.Execute(ref findText,
ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing))
{
MessageBox.Show( "Text found. ");
}
else
{
MessageBox.Show( "Text not found. ");
}
rng.Select();
}
请问如何将它转换成c++函数??
我参照下文
http://www.moon-soft.com/program/bbs/readelite9992.htm
提供的方法修改后,为什么
fndInDoc.Execute(...)不能执行??
遇到和下面链接同样的问题
http://maocom.com/resources/program/html/200684/7186.htm
还请高人指点!!!!
------解决方案--------------------------------------------------------
哈哈,可以结贴了,给我分吧?哈哈!