无人懂findnext的用法吗?我其实是想把该代码转为vc
Set c = Application.Selection.Find("1")
If Not c Is Nothing Then
MsgBox c.Value
End If
Set c = Application.Selection.FindNext(c)
If Not c Is Nothing Then
MsgBox c.Value
End If但在vc FindNext里的参数我不知道怎样给值.请问有人懂吗?
Set c = Application.Selection.Find("1")
If Not c Is Nothing Then
MsgBox c.Value
End If
Set c = Application.Selection.FindNext(c)
If Not c Is Nothing Then
MsgBox c.Value
End If但在vc FindNext里的参数我不知道怎样给值.请问有人懂吗?
PivotCellPtr c = Selection->Find("1"); // c的类型取决于实际应用
while (c)
{
// do something.
... IDispatchPtr disp = c;
_variant_t v = disp;
c = Selection->FindNext(v);
}
这行不能赋值, 强转也不行
V_DISPATCH(&v) = (IDispatch*)disp;