Click here to Skip to main content
15,881,862 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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

 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900