Page 144 - DCAP408_WEB_PROGRAMMING
P. 144

Windows Programming




                    Notes            The book has a snatch of insight from Mike Fries, the president and CEO of John Malone’s
                                     Liberty Global, the largest cable company outside the US, that 99 per cent of all television
                                     is still viewed on the living room TV set and that half the revenue of the industry today
                                     comes from IP services that did not exist a decade ago.
                                     To take the pace of innovations to the next level, and to keep subscribers from cutting the
                                     cord, Fries prescribes three things: “Connect our content to other devices, including PCs,
                                     tablets, and smartphones; bring  third-party online  content and apps  to  the TV; and
                                     revolutionise the user interface and experience.”
                                     Educative read that can add whole new perspectives to your otherwise routine TV viewing.

                                   8.4 Summary


                                      Sometimes installing new software in Windows can  overwrite the file associations for
                                       other software. Graphics programs are notorious for this bad behavior.
                                      Fortunately,  when  it  happens, you can follow  these steps  to  change  the default  file
                                       association so that double-clicking a file will open the program you choose instead of the
                                       last program you installed.

                                      In this section, we’ll write code so that your menu items actually do something other than
                                       displaying message boxes.
                                      In other words, the Edit > Cut menu will really cut text, and the Edit > Paste menu will
                                       really paste text.
                                      So open up the project you completed for the previous section. Comment out or delete any
                                       message box code.
                                      Despite initial appearances, writing a text editor is not a trivial task. Creating text editors
                                       takes programming experience and a firm basis in theory.

                                      The internet is littered with hundreds of unfinished or poorly working text editors.
                                   8.5 Keywords


                                   FTP: File Transfer Protocol
                                   Tokens: The token contains such useful information as the type of text, a description of the text,
                                   and the position of the text in the file.
                                   8.6 Review Questions


                                   1.  Sometimes installing new software in Windows can  overwrite the file associations for
                                       other software. Explain.

                                   2.  The stream may be access via fprintf or fscanf, and should be subsequently closed with
                                       fclose. Discuss.
                                   3.  Intel Hex and Motorola S-Record files are automatically loaded at the addresses specified
                                       in the file address records. Examine.
                                   4.  In most programmes, if you click the File menu, and select the Open item, a dialogue box
                                       is displayed. Give Reasons.

                                   5.  The name of this location (“Personal” or “My Documents”) depends on your operating
                                       system version. Discuss.




          138                               LOVELY PROFESSIONAL UNIVERSITY
   139   140   141   142   143   144   145   146   147   148   149