Hi Experts. I am having some C++ problems envoking a help file in the same directory.
I guess I'm just not an expert.
Can anyone tell me how to envoke oscar.hlp from the same directory.
I called the winhelp function but I can't get it to compile I recieve errors such as:
error C2660: 'WinHelpA' function does not take 3 parameters
What is WinHelpA mean when I'm calling WinHelp?
I got this from the help in MVC++ 5
A problem similar to the one shown above occurs when you mistakenly call a Windows API function directly from within an MFC member function, rather than calling the equivalent MFC member function of the same name. Since the two functions are identical in name this error may occur frequently. Either of the two following methods will solve this error:
•Adjust the function call to conform to the format of the member function call.
•Use the scope resolution operator (::) to tell the compiler to look for the function name in the global name space.
I am using MFC but I don't understand? I tried :: but same thing!
Anyways the question is how do I envoke help? I don't care how?
Moreover. This program was written in an earlier version I also am not able to get the help file generated to work
automatically in the compile as my new programs do. Im soomeone could tell me how to do this that would be best.
You know so it reades your resource.h
--Here is my function that I call to envoke the help file in the same directory.