Click here to Skip to main content
15,925,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: marker audio in sdk Pin
Paolo Ponzano8-Jun-04 19:30
Paolo Ponzano8-Jun-04 19:30 
GeneralRe: marker audio in sdk Pin
Vadim Tabakman9-Jun-04 11:46
Vadim Tabakman9-Jun-04 11:46 
GeneralFancy Property Sheet Pin
flip8-Jun-04 19:08
flip8-Jun-04 19:08 
GeneralRedirecting standard input from dos-console to HWND Pin
Paolo Ponzano8-Jun-04 18:45
Paolo Ponzano8-Jun-04 18:45 
GeneralRe: Redirecting standard input from dos-console to HWND Pin
Anthony_Yio8-Jun-04 20:12
Anthony_Yio8-Jun-04 20:12 
GeneralRe: Redirecting standard input from dos-console to HWND Pin
David Crow9-Jun-04 3:33
David Crow9-Jun-04 3:33 
GeneralHelp! Line Thinning using Visual C++ Pin
fuzzypeach8-Jun-04 17:42
fuzzypeach8-Jun-04 17:42 
GeneralWhat's problem with IHTMLDocument2::write Pin
Hailiang Yu8-Jun-04 17:12
Hailiang Yu8-Jun-04 17:12 
Hi,
Now I'm using IHTMLDocument2::write to write html contents to an HTML document. But I found it become slower and slower after many times of writes, even I wrote in the same html contents every time. I dont know why Frown | :(
Below is the sample codes:

IHTMLDocumentPtr doc;
if(FAILED(doc.CreateInstance(CLSID_HTMLDocument, NULL, CLSCTX_INPROC_SERVER)))
return;
CComQIPtr<IHTMLDocument2> doc2 = doc;
if(doc2 == NULL)
return;

time_t startTime, ltime, delta = 0;
int step = 200;
for (int i = 1; i <= 50000; i++)
{
time(& startTime);
if(FAILED(doc2->write(sfArray)))
break;

doc2->close();

time(& ltime);
delta += ltime - startTime;

if (i % step == 0)
{
TRACE (_T("Seconds used on loading %d html DOM from %dth with same doc: %ld\n"), step, i - step, delta);

delta = 0;
}
}



I also write a demo project to demonstrate this but cant attach it here. If you need it, I'll send it to you.

Thanks & regards,

Hailiang
GeneralNeed a little help Pin
mayanxn038-Jun-04 17:05
mayanxn038-Jun-04 17:05 
GeneralRe: Need a little help Pin
Vadim Tabakman8-Jun-04 17:07
Vadim Tabakman8-Jun-04 17:07 
GeneralRe: Need a little help Pin
John R. Shaw8-Jun-04 17:49
John R. Shaw8-Jun-04 17:49 
GeneralRe: Need a little help Pin
Ryan Binns8-Jun-04 18:19
Ryan Binns8-Jun-04 18:19 
GeneralRe: Need a little help Pin
Vadim Tabakman8-Jun-04 18:29
Vadim Tabakman8-Jun-04 18:29 
GeneralRe: Need a little help Pin
John R. Shaw8-Jun-04 18:51
John R. Shaw8-Jun-04 18:51 
GeneralRe: Need a little help Pin
Vadim Tabakman8-Jun-04 18:28
Vadim Tabakman8-Jun-04 18:28 
GeneralCapturing/Saving a bitmap Pin
aparajita8-Jun-04 15:04
aparajita8-Jun-04 15:04 
GeneralRe: Capturing/Saving a bitmap Pin
Vadim Tabakman8-Jun-04 15:32
Vadim Tabakman8-Jun-04 15:32 
GeneralRe: Capturing/Saving a bitmap Pin
V.9-Jun-04 2:12
professionalV.9-Jun-04 2:12 
QuestionHow to create a file that inherits permissions? Pin
ICantChangeMyAcct8-Jun-04 14:58
ICantChangeMyAcct8-Jun-04 14:58 
AnswerRe: How to create a file that inherits permissions? Pin
jmkhael8-Jun-04 22:43
jmkhael8-Jun-04 22:43 
GeneralLocation of Poll.h - FOUND Pin
Vadim Tabakman8-Jun-04 13:27
Vadim Tabakman8-Jun-04 13:27 
GeneralLive video processing / DirectX Pin
merlinos8-Jun-04 13:01
merlinos8-Jun-04 13:01 
GeneralRe: Live video processing / DirectX Pin
Taha Elsayed8-Jun-04 14:28
Taha Elsayed8-Jun-04 14:28 
GeneralRe: Live video processing / DirectX Pin
merlinos8-Jun-04 14:50
merlinos8-Jun-04 14:50 
GeneralRe: Live video processing / DirectX Pin
Andrew Walker8-Jun-04 17:22
Andrew Walker8-Jun-04 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.