How can I load an image in MFC and C++?

Hi everyone,

I've a project now....
I found a SIFT source code, but in console application.
My teacher asked me to make it visualize, and she suggested me use MFC.

I have an idea .... I need a "file box" and "Browse" button (like form in HTML), when I click on Browse button, it allows me to select any certain image from my computer. After I click OK button, I'll copy the path of this image and give it to the source code I found before to process that image.

(image .png or .jpeg)

How can I do this?
Which tool in MFC (Toolbox, ...)? and which library I need?

Take a look at this line in the code (console application):
"SIFT *sift = new SIFT("C:\\Corner.png", 4, 2);"
=> so I need to change the path with another one, I mean.

Please, help me! I need your help!
Thanks so much!
Last edited on
Topic archived. No new replies allowed.