|
Hi Ralph,
Just wondering if you intended for this code to be in the "public domain", or if there was any other license under which you'd like this code to be used?
|
|
|
|
|
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?
|
|
|
|
|
Hi,
Did you find any solution to this issue?
Thanks,
Kishore
|
|
|
|
|
Hello,
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
<br />
bool CHHCtrl::ReplaceControl(CWnd* pDlg, UINT idCtrl, DWORD dwBtns, LPCTSTR pszHomeURL, bool fBtnText)<br />
the 4th line code:
<br />
pDlg->GetDlgItem(idCtrl)->DestroyWindow()<br />
to
<br />
pDlg->GetDlgItem(idCtrl)->ShowWindow(SW_HIDE);<br />
|
|
|
|
|
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.
Any suggestions would be appreciated.
Happy programming!!
|
|
|
|
|
Hello,
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".
Quoted from Dr. eXplain [^]
A security update for Windows XP® may block access to CHM files
Windows XP® security update blocks active content in CHM files to protect your system security. Additional information is available here.
Solution: Run Windows Explorer, right-click on the CHM file, and select Properties from the popup menu. Click on the Unblock button immediately below the Advanced button on the General page. Click Apply to show the content. Once the CHM file has been unblocked, the Unblock button disappears.
The CHM file is in the restricted Internet zone
When a CHM file that you are trying to access is stored remotely, e.g. on the network drive or on a remote server, you may also get in trouble. If the associated security zone is restricted, then CHM files won't be displayed as well.
Solution: Please go to Dr. eXplain's website[^] for details
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,
If missing [MAP] section in the CHM file,How can I display CHM using the CHHCtrlclass?
Thx in advance
|
|
|
|
|
this is so called article?
|
|
|
|
|
Do you have a constructive comment or are you just having a bad day?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
I have just tried to run the sample on Windows 98. And it did not work there. It fails at CreateControl(CLSID_WebBrowser, NULL,...).
Has anybody an idea why?
A solution would be great!
Thx in advance
|
|
|
|
|
Did you run the .exe that was included in the .zip file, or is it a problem running the program after you have built it?
|
|
|
|
|
I did a rebuild (with VC++7) and after that it did not work. I did remote debugging on the Windows 98 machine an there CreateControl returned 0.
The latest IE is installed. And common controls are up to date as well.
|
|
|
|
|
Has anybody an idea why this example does not work for Windows 98 (and Windows NT 4.0)?
Thanks in advance.
|
|
|
|
|
You have to add CoInitialize(NULL); to your code.
|
|
|
|
|
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
i have given samble xml & code........
<packet>
<dataitem>
<control>textbox
<title> label1
<value> labelValue
<size> 100,20
<position> 100,10
<dataitem>
<control>label
<title> label2
<value> labelValue
<size> 100,20
<position> 100,50
<dataitem>
<control>combobox
<title>combo1
<value>combotext,value2,value3,value4,value4......
<size>100,20
<position>100,130
<dataitem>
<control>button
<title>button1
<value>buttontext
<size>100,20
<position>100,160
private void Form1_Load(object sender, System.EventArgs e)
{
XmlDocument xmlDoc = new XmlDocument();
XmlNode xmlNode;
StringBuilder sb = new StringBuilder();
xmlDoc.Load("d:/sample.xml");
if (xmlDoc.HasChildNodes)
{
//open html
sb.Append("");
//first one
xmlNode=xmlDoc.SelectSingleNode("//DataItem[Control='"+"textbox"+"']/name");
string sName=xmlNode.InnerText;
xmlNode=xmlDoc.SelectSingleNode("//DataItem[Control='"+"textbox"+"']/height");
string theight = xmlNode.InnerText;
xmlNode=xmlDoc.SelectSingleNode("//DataItem[Control='"+"textbox"+"']/width");
string twidth = xmlNode.InnerText;
sb.Append("");
//second one
xmlNode=xmlDoc.SelectSingleNode("//DataItem[Control='"+"Checkbox"+"']/name");
string ssName=xmlNode.InnerText;
xmlNode=xmlDoc.SelectSingleNode("//DataItem[Control='"+"Checkbox"+"']/width");
string lwidth = xmlNode.InnerText;
xmlNode=xmlDoc.SelectSingleNode("//DataItem[Control='"+"Checkbox"+"']/height");
string lheight = xmlNode.InnerText;
xmlNode=xmlDoc.SelectSingleNode("//DataItem[Control='"+"Checkbox"+"']/value");
string lvalue = xmlNode.InnerText;
// string lvalue=null;
sb.Append("");
//close html
sb.Append(" | ");
//
// create Html file
//
if (sb != null)
{
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);
return;
}
}
}
}
}
|
|
|
|
|
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.
|
|
|
|
|
Ralph,
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.
Thank,
Lynn Vershum
|
|
|
|
|
|
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.
|
|
|
|
|
I'm using this code in a .NET application by means of a managed C++ dll wrapper, but I would rather use native .NET code if possible.
Is that code (or even KeyHelp control from www.keyworks.net) meant to be ported to .NET ?
Georges
|
|
|
|