解决方案 »
- 怎样手动生成MFC ActiveX控件的包装类(不用类向导)?
- Win32 开发 闪屏问题
- 求高手重写SetWindowText函数,谢谢.....
- 建立SetTimer后,为什么OnTimer(nIDEvent)要等很长时间才起作用
- 如何直接显示对话框 不显示 主框架
- 控件上加载图片的问题
- 我想在向量(或其它类似的数据结构)中存储不通类型的元素该怎么做?
- 一个LINK 2001 和 FATIL ERROR LNK1120 错误,在线等,立马给分!!1
- 在服务程序中用GetUserName不能得到当前登录用户名字?
- 急!!!怎样解决打印预览时图像变小问题
- 屏幕监控,控制台通过木马看见控制电脑的机器,可以观看和操控机器
- [GDI]请问我这个绘制过程有问题或者有缺陷么?
SafeArrayAccessData(varBLOB.parray,(void **)&pBuf);
memcpy(pBuffer,pBuf,nSize); ///复制数据到缓冲区m_pBMPBuffer
SafeArrayUnaccessData (varBLOB.parray);
m_Pic.LoadPictureData(pBuffer, nSize);
delete [] pBuffer;free(pBuffer)就可以了吧。
sorry,看错了,这个没问题的,不过pBuf你给它分配空间了吗? 有没怎么memcpy?
GlobalFree(hGlobal);
[out] Address of pointer variable that receives the interface pointer requested
in riid. Upon successful return, *ppvObj contains the requested interface
pointer on the storage of the object identified by the moniker. If *ppvObj is
non-NULL, this function calls IUnknown::AddRef on the interface; it is the
caller's responsibility to call IUnknown::Release. If an error occurs, *ppvObj
is set to NULL.