采用什么数据类型读取VC函数中的二进制数据串?

rushing 2003-10-17 10:00:35
在VC中定义为:
BOOL CCTIPlayerCtrl::CapturePicture(LPUNKNOWN ppBitMap, ...)
{
BITMAPINFO **pBitMap = (BITMAPINFO **)(ppBitMap);
.......
return true;
}

在VB中调用CapturePicture(ppBitMap)函数时,应该将ppBitMap设置成什么数据类型才行呢?编译器中显示为Unknown,使用String和Byte()都不行。
...全文
46 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
rushing 2003-10-29
  • 打赏
  • 举报
回复
试过么?
海牛 2003-10-20
  • 打赏
  • 举报
回复
Private Type RGBQUAD
rgbBlue As Byte
rgbGreen As Byte
rgbRed As Byte
rgbReserved As Byte
End Type
rushing 2003-10-20
  • 打赏
  • 举报
回复
bmiColors As RGBQUAD

这句编译出错,无此类型。
rushing 2003-10-17
  • 打赏
  • 举报
回复
类型不匹配
射天狼 2003-10-17
  • 打赏
  • 举报
回复
Public Type BITMAP '14 bytes
bmType As Long
bmWidth As Long
bmHeight As Long
bmWidthBytes As Long
bmPlanes As Integer
bmBitsPixel As Integer
bmBits As Long
End Type
海牛 2003-10-17
  • 打赏
  • 举报
回复
Public Type BITMAPINFO
bmiHeader As BITMAPINFOHEADER
bmiColors As RGBQUAD
End Type

Public Type BITMAPINFOHEADER
biSize As Long
biWidth As Long
biHeight As Long
biPlanes As Integer
biBitCount As Integer
biCompression As Long
biSizeImage As Long
biXPelsPerMeter As Long
biYPelsPerMeter As Long
biClrUsed As Long
biClrImportant As Long
End Type

7,762

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧