Click here to Skip to main content
14,983,344 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Create a dialog based MFC app and implement a right click context menu called "Open File". On clicking the menu show the windows file open dialog

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
Although i appreciate what the OriginalGriff has already replied :) ,
i am still replying as MFC can be a bit challenging for beginners, but i am not going to paste the code here. Rather just give you some pointers and you will have to explore further.

I gather that this exercise teaches you :
1). Creating a dialog based mfc app
2). Implementing the right-click context menu option

For 1 there is an article on Code Project A Beginners Guide to Dialog Based Applications - Part One[^]
which serves as good tutorial but the code is meant for VC++6. So for a more recent VisualStudio edition you can look up the MSDN[^]

As for the right click context menu part take a look at the answers to this question [^]

For getting the windows fileopen dialog explore the CFileDialog class[^]

By the way, searching the solution for your problems yourself is also a crucial skill so Google is your friend. Try searching on Google for your queries first because mostly somebody somewhere might have already faced and fixed the same problem.

hope this helps !!
Nimsha KV 5-Jan-15 0:53am
chandanadhikari 5-Jan-15 1:22am
you are welcome :)

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