Re: Loading image from DIB
'viewimageex' takes in a pointer to an 'imgdes' object, but your passing in a pointer to a pointer of an 'imgdes' object.
Don't throw casts around just to get rid of compiler errors. Your function already has the proper pointer, remove the '&' from the 'image' parameter when you call 'viewimage'.
Viggy
Re: Loading image from DIB
Thanks for the reply Viggy,
I changed it to image and it compiled fine but still no image was displayed when I ran the program. Sorry about the pointer confusion still pretty new to programming and C++, can you offer any advice on why nothing is showing or any other ways to display an image thats in the DIB?
Re: Loading image from DIB
Unfortunately, no. "viewimageex" is not an API function (search of the MSDN brought up nothing).
Viggy
Re: Loading image from DIB
if you can put the code here. it would be helpful for the people to read it and solve your problem :-)
Re: Loading image from DIB
the code of what, the viewimageex function or the code I am using to implement it?
Re: Loading image from DIB
if you want to display a jpeg image
you can use IPicture. or use CXImage, it is an open source project.
you can put your function "viewimageex" code here. maybe someone can help you