Title: Message
I'm afraid i have come across another problem with the HTMLWriter.
This problem concerns forms in the html that is displayed in the HTML browser.
 
The problem is that when the user clicks on the submit button of the form and i try to catch this action in the OnBeforeNavigate Event. The url parameter does not hold the correct url. Rather it is "about::blank".
I need to catch the OnBeforeNavigate event and parse the url for the fields that the user filled in the form.
 
I've attached the sample app of the HTMLWriter with the changes i have made to demonstrate the problem i have.
I've add another webbrowser that displays the form w/o the HTMLWriter.
 
Before building the sample app, change line #148 to

webBrowser.Navigate("XXX\\res\\html1.htm", 0, NULL, NULL,NULL);

Replace XXX with the path where you placed the sample.

 

Thanks,

Michal.

 
 
-----Original Message-----
From: Ehsan Akhgari [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2003 10:04 PM
To: [EMAIL PROTECTED]
Subject: RE: [MSVC] Problem with HTMLWriter

 
I changed to windows-1252 but it still does not work.
 
However, i found the weirdest thing. I compiled the sample in release mode and run the application and it does work.
After some investigation i found in the project propeties that if i set the character set to 'Use Unicode Character Set' rather than 'Use Multi-Byte Character Set' it works .
 
Do u have any idea why that makes the difference.
 
The problem is that i cannot change my project character set to unicode. I need it to stay as Multi-Byte. 
Hmmm, maybe you're entering some characters which have glyphs similar to those acceptable by HTML in your system locale in your source code, which causes the HTML parser to fail to parse the file correctly?
 
OK, here is an idea: make your application use MBCS, but feed in Unicode strings as the HTML source code to the WebBrowser control.  You can use MultiByteToWideChar( ) to convert the strings to UFT-8 (preferrably) or UTF-16, and then specify the utf-8 or utf-16 charsets inside the <meta> tag.

---------
Ehsan Akhgari

List Owner: [EMAIL PROTECTED]

[Email: [EMAIL PROTECTED]; [EMAIL PROTECTED]]
[WWW: http://www.beginthread.com/Ehsan ]
 

Physician, heal thyself: then you will also heal your patient. Let it be his best cure to see with his eyes the man who heals himself.
-Thus Spoke Zarathustra, F. W. Nietzsche

Reply via email to