开发者

SHLoadImageFile API not working

As mentioned in the title I am facing problem with SHLoadImageFile API. I am trying to load a series of captured images one by one and trying to retrieve the respective image properties. The API is not returning a valid handle for an image of higher resolution, for the rest of images (with decreasing resolution) its working fine. Can anyone tell me where I am going wrong??? Here is my how my code looks

// Code to capture image

hBmp = SHLoadImag开发者_如何学编程eFile(szFilePath);      //szFilePath- refers to loaction of the image
if(!hbmp)
//error msg

current_bmp.Attach(hBmp);  
current_bmp.GetBitmap(&hBmpInfo);

//code to copy image width and height to a local variable.

As soon as the location of image of higher resolution is sent as parameter,the control entersto if block and displays error msg.


I remember that the SHLoadImageFile() API will be failed when try to load an image that exec

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜