home *** CD-ROM | disk | FTP | other *** search
/ distrib.akp.su/Programming/Vb-6+Rus/ / distrib.akp.su.tar / distrib.akp.su / Programming / Vb-6+Rus / COMMON / MSDEV98 / BIN / IDE / VCXX.TIP < prev    next >
Text File  |  1998-04-25  |  5KB  |  50 lines

  1. ; Microsoft Visual C++
  2. ; Tip of the Day
  3. ; Copyright⌐ 1996-1997 Microsoft Corp. All rights reserved.
  4. ;Visual C++ 5.0 (VCXX.TIP)
  5. ; -- Categories --
  6. vcx=The Visual C++ Product
  7. cxx=C++
  8. mfc=Microsoft Foundation Class Programming
  9. wiz=Wizards
  10. prg=General Programming
  11. xdv=Cross-Platform Development
  12. ; -- Tips --
  13. #priority 80
  14. vcx,Welcome to the the Microsoft Visual C++ Developer Studio.\n\nWe've got a lot of great tips for getting the most out of your development environment, so leave Tip of the Day turned on for a while. If you turn Tip of the Day off, it is available from the Help menu.
  15. #priority -
  16. cxx,You can get a more detailed explanation for any build error. Click on the message number and press F1.
  17. cxx,The source code for the standard run-time library is provided with Visual C++, so you can step into run-time functions just as you would any other code.
  18. cxx,The compiler options /Yc and /Yu (Create and Use specific precompiled header) provide the most efficient precompiled header management.
  19. cxx,You should define an assignment operator if you define a copy constructor.
  20. cxx,Avoid using the Terminate Thread and Exit Thread APIs as they immediately shut down a running thread without completing any normal shut down tasks, which may cause memory and resource leaks. These APIs are provided for advanced systems programming only.
  21. cxx,You can use the C++ typeid operator to obtain type information at run time.
  22. wiz,You can customize AppWizard to create projects most useful to you. Create a new "Custom AppWizard" project to get started.
  23. cxx,You must initialize references and non-static const members in the member-initialization list of the constructor.
  24. cxx,Memory allocated with the C++ operator new[] must be freed with operator delete[].
  25. cxx,With C++ run-time type information, you can perform safe typecasts and manipulate type information at run time.
  26. mfc,You can add Tool Tips to your application's buttons. Append "\\n" and the Tool Tip text to the corresponding menu item's Prompt string.
  27. cxx,With Edit and Continue, you can debug your code changes even if they occur prior to the point of execution. Right-click on the line of code that was modified, and select "Set Next Statement." The point of execution moves to your cursor, and you can immediately see the results of your edits!
  28. cxx,You can use C++ exception handling to handle unusual cases in your program.
  29. cxx,You can use C++ templates to write generic classes and functions for arbitrary types.
  30. cxx,You should initialize all members in a constructor.
  31. cxx,To avoid build errors when upgrading from one version of the compiler to another, make sure you delete your old PDB and PCH files.
  32. cxx,The new debug version of the C/C++ run-time library can help you find heap corruption problems in your program.
  33. cxx,If you allocate memory in a derived class, you should make the destructor for the base class virtual.
  34. cxx,You can use the C++ dynamic_cast operator for safe polymorphic run-time casts.
  35. cxx,You can enable floating-point exceptions with the _controlfp function.
  36. cxx,You can provide an implementation for pure virtual functions by defining a __purecall function.
  37. cxx,Expressions using the C++ dynamic_cast and typeid operators are resolved at run-time for pointers and references to classes with virtual functions and at compile-time for all other types.
  38. cxx,You can use enum to create class-specific integral constants.
  39. cxx,The new C++ operators dynamic_cast, static_cast, reinterpret_cast, and const_cast provide clearer typecasting than C-style typecasts.
  40. cxx,MFC windows are ACtiveX control containers. To use an ActiveX control, install it in your project, using the Insert ActiveX Control command from the pop-up menu in the Dialog Editor. Then you can drag the control from the dialog palette onto your dialog.
  41. cxx,You can avoid naming collisions by using the new C++ namespace feature.
  42. cxx,If your code uses the obsolete class names Type_info, Bad_cast, or Bad_typeid, you can #define __RTTI_OLDNAMES before including <TYPEINFO.H>, and these class names will be accepted.
  43. vcx,You can browse the Visual C++ Start page on the World Wide Web. The Visual C++ Start page includes information such as documentation that missed the deadline for the latest version of Books Online. The address for the Visual C++ Start page is: \nhttp://www.microsoft.com/visualc/
  44. czx,You can automatically indent and format your C/C++ code with the "Smart Indent" feature turned on. You can find this feature on the Tabs tab in the Options dialog.
  45. cxx,You can change the default placement of brackets { } by changing the settings on the Tabs tab in the Options dialog.
  46. cxx,You can search the directory paths specified on the Directories tab in the Options dialog by activating a checkbox in the Find In Files "Advanced" settings.
  47. cxx,If a derived class allocates memory, use a virtual destructor.
  48. vcx,You can find the latest information about Visual C++ on the WorldWide Web at http://www.microsoft.com/visualc.
  49. vcx, External makefiles have been separated from the internal project files. To generate an external makefile for use with NMAKE, use the Export makefile command from the Project menu.
  50.