[求助]参数的疑惑?
void MainDialog::OnOnImageWithInfoDvtsid1(VARIANT* ImageInfo)
{
if(ImageInfo[1]<0)
{
}
}
我是仿造VB里的这个函数的
Private Sub DVTSID1_OnImageWithInfo(ImageInfo() As Variant)
If (ImageInfo(1) < 0) then
DVTSID1.SaveImage ("c:\image\img" & NumImages & ".bmp")
End if
End Sub
在VB例子里有如下说明
ImageInfo(0) ImageID as Double
ImageInfo(1) Result as Integer
ImageInfo(2) ColorMode as Integer
ImageInfo(3) Resolution as Integer
ImageInfo(4) ImageName as String
请问ImageInfo的类型该声明为什么类型?
(2)的最后一个参数该用 什么?
注:ImageInfo用来传递一个图象信息
我把ImageInfo声明为VARIANT*有问题?
请问该声明为什么类型
VOID*也有问题
请教,谢谢!~