This is from 2009. The doc still exists, and the API still does not. But who cares; a workaround was posted and everything is working as it should.<p>That being said, documentation is really, really hard -- especially when you have thousands and thousands of pages. Unfortunately, things get out of sync. I just want to know how it managed a 4/10.
It's a cute comment, but the answer is in there. I don't think Microsoft is highly motivated to update some of this ancient IE embedding lore:<p><pre><code> hr = pDoc->QueryInterface(__uuidof(IServiceProvider),
(void **)&spServiceProvider);
hr = spServiceProvider->QueryService(__uuidof(ITimerService),
&spTimerService);
hr = spTimerService->CreateTimer(NULL, ppTimer);
</code></pre>
(did someone at MSFT see this HN post today and update the comment?)
If you are using COM you should already know how to instantiate an object from it's UUID. That's all the provided example code is doing. It's not outrageous for the author to assume as much from the reader. It's basic COM 101.
I'm confused, what is the context here? The comment is humorous, but the microsoft rep did reply back with (what seems like) working code. In 2009.<p>Also, why does one need the MSHTML Timer API these days?
On a somewhat related note:<p>Starting with version 2.0 the OpenGL spec requires the implementation of perlin noise functions noise{1,2,3,4}.<p>However there's no major OpenGL vendor that implements this. In most cases the noise functions just return 0.<p><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/noise.xml" rel="nofollow">http://www.opengl.org/sdk/docs/manglsl/xhtml/noise.xml</a>
I sometimes have the impression that msdn articles are from time to time depublicized and some information is taken offline either under management directions or just lost in migration. Its quite amazing that CodeProject is more useful than the docs of a company like Microsoft, who actually sells MS visual studio for money.