Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Source code Annotation Language

Source code Annotation Language

Scheduled Pinned Locked Moved The Lounge
visual-studiocomtutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Ernest Laurentin
    wrote on last edited by
    #1

    Do you guys use Microsoft annotation language (SAL - sal.h) in your code? http://msdn2.microsoft.com/en-us/library/ms235402(VS.80).aspx[^] (example in atlcomcli.h: static bool LoadStringResource(__in HINSTANCE hInstance, __in UINT uID, __deref_out_opt BSTR& bstrText) throw() ) Would you consider it useful? or do you prefer PC-Lint http://www.gimpel.com/[^]? SAL's been around for a while now and is very useful for Prefast but MS is pushing this into user mode.

    God bless, Ernest Laurentin

    F 1 Reply Last reply
    0
    • E Ernest Laurentin

      Do you guys use Microsoft annotation language (SAL - sal.h) in your code? http://msdn2.microsoft.com/en-us/library/ms235402(VS.80).aspx[^] (example in atlcomcli.h: static bool LoadStringResource(__in HINSTANCE hInstance, __in UINT uID, __deref_out_opt BSTR& bstrText) throw() ) Would you consider it useful? or do you prefer PC-Lint http://www.gimpel.com/[^]? SAL's been around for a while now and is very useful for Prefast but MS is pushing this into user mode.

      God bless, Ernest Laurentin

      F Offline
      F Offline
      Fernando A Gomez F
      wrote on last edited by
      #2

      :omg: No thanks. I'd much rather do something like:

      /* Returns: Whether the string was loaded or not
      * Param hInstance: The module's handler where the resource resides
      * Param uID: The ID of the string to be loaded
      * Param bstrText: A reference where the associated string will be loaded to
      */
      static bool LoadStringResource(HINSTANCE hInstance, UINT uID, BSTR& bstrText);


      Hope is the negation of reality - Raistlin Majere

      E 1 Reply Last reply
      0
      • F Fernando A Gomez F

        :omg: No thanks. I'd much rather do something like:

        /* Returns: Whether the string was loaded or not
        * Param hInstance: The module's handler where the resource resides
        * Param uID: The ID of the string to be loaded
        * Param bstrText: A reference where the associated string will be loaded to
        */
        static bool LoadStringResource(HINSTANCE hInstance, UINT uID, BSTR& bstrText);


        Hope is the negation of reality - Raistlin Majere

        E Offline
        E Offline
        Ernest Laurentin
        wrote on last edited by
        #3

        Thanks for your response! Annotation is much more useful for static source code analysis (like PC-Lint)(or Prefast http://www.microsoft.com/whdc/devtools/tools/PREfast.mspx[^]).

        God bless, Ernest Laurentin

        A 1 Reply Last reply
        0
        • E Ernest Laurentin

          Thanks for your response! Annotation is much more useful for static source code analysis (like PC-Lint)(or Prefast http://www.microsoft.com/whdc/devtools/tools/PREfast.mspx[^]).

          God bless, Ernest Laurentin

          A Offline
          A Offline
          Anna Jayne Metcalfe
          wrote on last edited by
          #4

          They may help PREfast, but AFAIK PC-Lint doesn't need (or care) about them.

          Anna :rose: Linting the day away :cool: Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups