Thanks for the reply.
But this doesnt seem to relate to my query. I guess i did not make myself adequately clear in my post.
I am building an MFC application (i started building it in Windows XP). In this application, i had my own help file. I intended that when i press Help, this help file shoud get displayed. It was happening in XP but when i migrated to Win 7 and press F1, i used to get an error message saying that "Failed to launch Help".
Then i learnt that Windows 7 doesnt recognize .hlp as the help file. The other possibilities are .chm, .txt etc. I then converted my help file format from MyApp.hlp to MyApp.chm.
Then i made some changes in my code to launch my help file using HtmlHelp() instead of usual WinHelp(). This also worked for me.
The only problem that i am getting is that say if i am in my first dialog with help ID IDD_BLAH_BLAH_BLAH_1, then on pressing F1, i should directly open the help related to this particular ID (rather that opening the entire help file). In other words, i wanted the help file to be Context sensitive.