How to will "string" type convert "IStream" type in MFC frammework

heyangben 81 Reputation points
2022-07-06T09:21:41.513+00:00

In MFC framework
I want to Load JPG images into “picture Control“ Control by calling "CImage. Load (IStream*)", but I don't know how to convert string to IStream, does anyone know how to solve this problem? I don't want to save it locally and then Load it by calling "CImage. Load (LPCTSTR)". I just want to load picture in memory
Or there are other ways to implement this requirement?
I just don't want to save it locally
I want to load it directly into "Picture Control" Control
218112-one.png

218067-image.png

217979-image.png

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,851 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
358 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.