When I build the demo program using Visual Studio 2005 I get an assertion in file occcont.cpp:950 (ASSERT(IsWindow(pTemp->m_hWnd));). When ignoring the assertion everything works fine but I get some memory leaks. Any hints how I can solve this problem?
unfortunately I haven't found a solution and the problem still exists in VS2008. (OK, I have to admit that I didn't search too much.) In my application I removed CHHCtrl control and switched to a control, that converts HTML to RTF ( http://www.viksoe.dk/code/simplehtmlviewer.htm[^]) which works fine for my needs.
Bye
Holger
In vs2008 sp1, I fix this by replace the code in function
bool CHHCtrl::ReplaceControl(CWnd* pDlg, UINT idCtrl, DWORD dwBtns, LPCTSTR pszHomeURL, bool fBtnText)
the 4th line code:
pDlg->GetDlgItem(idCtrl)->DestroyWindow()
How can one disable the Drop in particular when using the IWebBrowser2 control. I am using it in places where it is inappropriate to able to drop a file on it.
Setting the Allowfiles to false seems not to work.
I start my app from another PC in LAN, and then when I try to launch HtmlHelp for the app, help window shows, but without content. It seems like .chm file has problem with finding .htm pages compiled in it.
Is there a way to solve this problem?
This is a million year old question that doesn't seem to have been answered. In case you're someone like me wandering around the articles and would like to know the solution for this poster issues, perhaps I can help.
If what he is describing is this: a .chm file that has been opened on another computer and it was copied over from a LAN or even sent to you via email (or some other method) does not display content. It actually may show a web type error like "this page cannot be displayed..yada yada".
I've listed the two most common reasons for the error but the website explains several more and their solutions.
I hope this helps someone.
S.Nowlin
-----------------------
I'm a Techwriter Monkey -- handy, just less useful than the Bathroom Monkey.
Hi,
V have one form is there.
that form contain several control(like textbox, checkbox,..)
fisrt convert in to xml file. this one was always avilable....
But i want read data from xml, create html control for browser.
If comobox contain several value than , v can make checkbox for each value....
Purpose:
v have one form. if printout that form than it will show only one value in the comobox. v need all value in the comobox.
main purpose was one form u take printout than, its useful to write a manual data..........
If any one know this one pls help me.......... thenkathir@rediffmail.com
FileInfo fiFile = new FileInfo(Application.StartupPath + @"\CDCPRINTSAMPLE.HTML");
if (fiFile.Exists)
{
fiFile.Delete();
}
FileStream fs = new FileStream(Application.StartupPath + @"\CDCPRINTSAMPLE.HTML",FileMode.Create,FileAccess.Write,FileShare.None);
StreamWriter sw = new StreamWriter(fs);
sw.WriteLine(sb.ToString());
sw.Close();
fs.Close();
//Loads the page at specified URL in the Web browser
axWebBrowser1.Navigate(Application.StartupPath + @"\CDCPRINTSample.HTML", ref cobjGeneral, ref cobjGeneral, ref cobjGeneral, ref cobjGeneral);
I am not able to open a .chm file if there is a "#" in the path of the file, e.g. c:\aa#bb\abc.chm. Please tell me how to do that.
Thanx in advance
Atul
Obviously I am way late on providing a solution, but the issue is the hash mark #. If you place the compiled .chm in a folder without the # in its name (and providing the properties are not blocked by an xp security update) the file should open.
Example: the file is stated to be located in C:\aa#bb\ just remove the # so the path is now C:\aabb\ and the .chm should display fine.
For some reason, HTMLhelp has a problem resolving internal pathing when placed in a folder such as above. I think it is because HTMLhelp see the hash as a hard stop.
Anyway I hope that helps.
S.Nowlin
-----------------------
I'm a Techwriter Monkey -- handy, just less useful than the Bathroom Monkey.
Hi,
I just tried to make an HTML help file by seeing Kruglinski book. but I am getting a warning called "The Topic ID "HID_CONTENTS" specified in the Project files as the Default Topic does not exist". This is very urgent please help as soon as possible.
Thanks in Advance
Start up HHW.exe (HTML Help Workshop, free from Microsoft), and open your project file. Click the first of the vertical buttons on the left. In the property sheet that comes up, the second combo box labeled "Default file" should contain all the HTML files you are going to compile into your CHM file. Choose the file you want from that list, click okay, and then save your project file. This should correct the problem you are seeing.
I would like to do what you did in the article Embedding an HTML Help window into a dialog. However, I only have VB.net right now. Do you have the code or a procedure that would be easier to create an embedded HTML help file in a Windows form.
I downloaded the KeyHelp 1.1 ActiveX control and it looks to be exactly what I need. But I can't for the life of me figure out how to programmatically change the ChmFile. It only seems to work for me if I set the ChmFile and InitialMapId at design time. How do I change these values at runtime and get the new chm file or topic to display? Thank you very much for the control.