here I will put different little exercices I find. 6th grade problem: find all integral numbers which after substraction to 9999 give the same number without the last digit. for example: abcde - 9999 = abcd damn, it must be easy
Don't blow your head, you have this situation: you have a valid form element and you want to access its elements. IHTMLFormElement* pForm = ... one way to do it is by: HRESULT IHTMLFormElement::get_elements(IDispatch **p) and the code looks like the following: IDispatch * pDisp = NULL ; pForm -> get_elements (& pDisp ); IHTMLElementCollection * pFormColl = NULL ; HRESULT hr = pDisp -> QueryInterface ( IID_IHTMLElementsCollection , ( void **)& pFormColl ); but you get pFormColl having NULL value and hr = 0x80004002 which means The QueryInterface method did not recognize the requested interface. The interface is not supported. Google'ing it a bit you get plenty of similar behaviour. The workaround is to use HRESULT IHTMLElement::get_children(IDispatch **p) The hint is given by MSDN description for this method: To access all elements contained in a form, call QueryInterface on IHTMLFormElement and request an IHTMLElement interface. Use the IHTMLElement::chi...
As an app developer, it's impossible not to have the task to display an icon in the app. One of the common ways to display icons , instead of using images or SVGs , is by using font files (.ttf, .otf or .woff). Although font files are usually used to display text with a specific font, but they can also be used to display icons . Instead of containing glyphs with letters , they contain glyphs with icons : There are different types of font technologies but the most common ones today are the TrueType (.ttf), OpenType (.otf) or the WOFF (.woff) font files. The way they store and render the glyphs is using a collection of line and curve commands as well as a collection of hint , which allows them to provide both relatively fast drawing speed and true device independence . The device independence is a key aspect given the myriad of display sizes and technologies which exist today. Referring to an icon inside of a icon font file works by knowing the hexadecimal val...
Comments
Post a Comment
Say something nice please.
Thank you.