Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Wed, 1 Mar 2006 07:57:31 -0800,    group: microsoft.public.inetsdk.programming.html_objmodel        back       


IGOR......plain to html   
Hi Igor,

1.
      I have plain text like Hi, This siri from www.xyzw.com.
      Can I convert this text to html text using any api's or interfaces?

2. 
     I have html body in pchHtmlText. I got IHTMLDocument2 interface from 
CLSID_Document, then am getting interface using 
IHTMLDocument2->Write(pchHtmlText);. But, with this write() statement only, 
Handles are increasing in taskmanager. sometimes handles are reached to 4,000 
also. 

    Without write() statement, my application using only 424 handles only. 

   How do I control handles?

Thanks in advance.

Regards,
Siri.
date: Wed, 1 Mar 2006 07:57:31 -0800   author:   Siri

Re: IGOR......plain to html   
Siri  wrote:
> 1.
>      I have plain text like Hi, This siri from www.xyzw.com.
>      Can I convert this text to html text using any api's or
> interfaces?

I'm not sure I understand your question. Somehow I suspect you don't 
mean anything like this:

var plain = "Hi, This siri from www.xyzw.com"';
var html = "<html><body>" + plain + "</body></html>";

even though, technically, it answers your question.

> 2.
>     I have html body in pchHtmlText. I got IHTMLDocument2 interface
> from CLSID_Document, then am getting interface using
> IHTMLDocument2->Write(pchHtmlText);. But, with this write() statement
> only, Handles are increasing in taskmanager. sometimes handles are
> reached to 4,000 also.
>
>    Without write() statement, my application using only 424 handles
> only.

So before there was no HTML rendered, now there is, and you are 
surprised that resource usage is growing?

>   How do I control handles?

You don't. If you don't like how MSHTML allocates resources, don't use 
MSHTML. There's nothing else you can do about it.
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Wed, 1 Mar 2006 11:20:31 -0500   author:   Igor Tandetnik

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us