|
I have a problem like your.
I solved it with this corrections:
Add the macros
ON_COMMAND(ID_HELP_FINDER, CMDIFrameWnd::OnHelpFinder)<br />
ON_COMMAND(ID_DEFAULT_HELP, CMDIFrameWnd::OnHelpFinder)<br />
ON_COMMAND(ID_HELP, CMDIFrameWnd::OnHelp)<br />
ON_COMMAND(ID_CONTEXT_HELP, CMDIFrameWnd::OnContextHelp)
to the Mainframe map
And add to the constructor of the application
EnableHtmlHelp();
Then put the help file in the exe folder.
Note. my help is an html help.
|
|
|
|
|
should i add these code as it is or any changes should be made. what do u mean by "mainframe map"
|
|
|
|
|
Sorry for the late:
As I sad: I solved the problem with this lines, now pressing F1 the help will be displayed.
mainframe is described in MainFrm.cpp
and there you can find the message map:
BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
ON_WM_CREATE()
ON_COMMAND(ID_WINDOW_NEW, OnWindowNew)
... //Add here
The app constructor is (usually empty) in another file: MyAppName.cpp
But note: this works with html help, but I think that the macros are the same in both cases
|
|
|
|
|
I want hand cursor on static box. I have used the following code, but its not working please tell me if there is a way out.
CString windir;
GetWindowsDirectory(windir.GetBuffer(MAX_PATH), MAX_PATH);
windir.ReleaseBuffer();
windir += _T("\\winhlp32.exe");
HMODULE hModule = LoadLibrary(windir);
if (hModule)
{
g_hCursorLink =CopyCursor(::LoadCursor(hModule, MAKEINTRESOURCE(106)));
}
FreeLibrary(hModule);
if (g_hCursorLink)
{
m_MyStatic.SetCursor(g_hCursorLink);
}
|
|
|
|
|
The code is a little bit terrifying
Because if you just want to load the hand cursor, you will get it by
LoadCursor( 0, MAKEINTRESOURCE(32649))
Another thing is SetCursor will not change the cursor permanently.
Try this
BOOL MainWindow::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
if( pWnd == &m_MyStatic )
{
SetCursor( LoadCursor( 0, MAKEINTRESOURCE(32649) ) );
return TRUE;
}
return CWnd::OnSetCursor(pWnd, nHitTest, message);
}
CWnd should be replaced by your class name.
- NS -
|
|
|
|
|
|
It needs (WINVER >= 0x0500). So I just used its value!
- NS -
|
|
|
|
|
NS17 wrote: It needs (WINVER >= 0x0500). So I just used its value!
So which one is easy! Using it's value (Of course with MAKEINTRESOURCE ) or defining WINVER once and using IDC_HAND .;)
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
OK OK...
As he was trying to load it from exe module, I think it is better to get him the cursor with out making him much effort... After he can do it successfully he can simply change it by definging the WINVER. If you don't like it, he have to ...
- NS -
|
|
|
|
|
NS17 wrote: OK OK...
As he was trying to load it from exe module, I think it is better to get him the cursor with out making him much effort... After he can do it successfully he can simply change it by definging the WINVER. If you don't like it, he have to ...
But still tell me which one is easy...
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
For a beginner my method is easy...
- NS -
|
|
|
|
|
NS17 wrote: For a beginner my method is easy...
What if the Beginner would like to write the same code at several places.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Nibu thomas wrote: like to write the same code at several places
But his question or need does not mean that
- NS -
|
|
|
|
|
Hi,
can somebody tell me how to create external ActiveX from Application type - Multiple documents ?
jan
|
|
|
|
|
Anyone know how to rebuild the intellisense in VS 2005? VS is not picking up changes I have made to structures that are contained in header files that are not part of the solution.
AxisFirst For Business
|
|
|
|
|
- exit Visual studio.
- Delete the .ncb file
- Open VS and compile
Now the intellisense database is updated. (I hope )
|
|
|
|
|
The header file is not part of the solution so that makes no difference. VS seems to have a cache somewhere that I need to delete. The structure in question was changed about a year ago but this is the first time I've had to debug using this particular structure and the watch window is showing the old format structure.
AxisFirst For Business
|
|
|
|
|
Steve Thresher wrote: The header file is not part of the solution so that makes no difference
I think that this isn't the real problem: I think that the VS cache is only in the solution main folder -> so you have to edit something there.
Try also to delete the DEBUG(or RELEASE) sub folder(s).
This will reset the solution and will reset everything that was generated with VS.
|
|
|
|
|
I have tried deleting every temporary file, solution file and project file but nothing has changed. To make matters more complicated the structure is a member of another structure and this is where I get the problem. If I declare an instance of the problem structure the watch window shows the correct layout. So now I have two entries in the watch window which both show as the same type but with different layouts. Even adding a cast to the front of the variables being watched makes no difference.
AxisFirst For Business
|
|
|
|
|
Last year I was exactly your problem, but with the suggestions that I gave to you now it is solved,.....so probally I can't help you more.
Was the application closed when you was deleting the files and folders?
It is important!
|
|
|
|
|
Yes the application was closed when I deleted all temporary, solution and project files. If the application wasn't closed I wouldn't have been able to delete the NCB file.
Thankyou very much for trying to help, I still have the layout problem but I have solved the program bug and so have to move onto the next problem. I'll try again another time.
AxisFirst For Business
|
|
|
|
|
As I understand intellisense is only used to show information in the code window. Since you are having this problem with watch window something else is wrong. Did you tried using quick watch, does it have same problem.
-Saurabh
|
|
|
|
|
Close all files and views that you have opened in your project.
Delete the .ncb file from the project folder.
Close all instances of the editor running from task manager.
Reopen your editor and then try and Clean/Rebuild the solution.
I hope that this solves your problem.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi,
can somebody tell me how to debug ActiveX used in external application (external application used
*.OCX)???
Thanks
|
|
|
|
|
For the DLL that you want to debug, set the container application's EXE path (where you use your component) to 'Executable for Debug Session' in 'Linker' settings.Then run your application setting the breakpoints.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|