Click here to Skip to main content
14,271,952 members
Rate this:
Please Sign up or sign in to vote.
See more:
How a MFC picture control show pictures in the internet without download it? Like i just get a url: http://xxx/xxx.jpg how can i show it on my picture control whitout download it to my disk,may just use the Memory,But i do not know how ,Thx for answering... Well , how can i delete this question,i post twice because of forget the Tags and System ask me to add one...The delete funcation seems not work.
Posted
Updated 19-Nov-09 0:38am
v3

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Hi,

You could use the CInternetFile Class and read the file into a buffer created by GlobalAlloc. Then use the CreateStreamOnHGlobal function to create an IStream from the memory handle. Then finally use the OleLoadPicture function to read the image stream.

Best Wishes, -David Delaune

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100