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. cpp.hint

cpp.hint

Scheduled Pinned Locked Moved The Lounge
c++visual-studiocsharphelp
6 Posts 5 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.
  • B Offline
    B Offline
    BernardIE5317
    wrote on last edited by
    #1

    if you utilize Visual Studio and C++ you know IntelliSense likes a so called hint file i.e. "cpp.hint" . as far as i know no automatic means to generate this file exists . as i find manually entering each macro tedious and usually forget to do so at time of writing each macro and as i found current project has more than 1000 macros i wrote a C program to generate said hint file . i don't know how others solve this problem however if any would find this code useful i can provide same after polishing up the last 2% .

    J M G C 4 Replies Last reply
    0
    • B BernardIE5317

      if you utilize Visual Studio and C++ you know IntelliSense likes a so called hint file i.e. "cpp.hint" . as far as i know no automatic means to generate this file exists . as i find manually entering each macro tedious and usually forget to do so at time of writing each macro and as i found current project has more than 1000 macros i wrote a C program to generate said hint file . i don't know how others solve this problem however if any would find this code useful i can provide same after polishing up the last 2% .

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      I haven't used VS in years, but if it's a common problem people face these days then it's a great candidate for an article. Perhaps it could be your first one.

      Jeremy Falcon

      1 Reply Last reply
      0
      • B BernardIE5317

        if you utilize Visual Studio and C++ you know IntelliSense likes a so called hint file i.e. "cpp.hint" . as far as i know no automatic means to generate this file exists . as i find manually entering each macro tedious and usually forget to do so at time of writing each macro and as i found current project has more than 1000 macros i wrote a C program to generate said hint file . i don't know how others solve this problem however if any would find this code useful i can provide same after polishing up the last 2% .

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        first time I've heard about that. will go educate myself.

        CI/CD = Continuous Impediment/Continuous Despair

        1 Reply Last reply
        0
        • B BernardIE5317

          if you utilize Visual Studio and C++ you know IntelliSense likes a so called hint file i.e. "cpp.hint" . as far as i know no automatic means to generate this file exists . as i find manually entering each macro tedious and usually forget to do so at time of writing each macro and as i found current project has more than 1000 macros i wrote a C program to generate said hint file . i don't know how others solve this problem however if any would find this code useful i can provide same after polishing up the last 2% .

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #4

          If anyone else is wondering like I was: Hint Files | Microsoft Learn[^] I'm always torn when it comes to #define macros. I've had a number of cases where that was the cleanest way to solve a problem, but I've always felt vaguely guilty about it. My intuition says that if you need to supply a "hint file", maybe you're overdoing it in the macro department.

          Software Zen: delete this;

          1 Reply Last reply
          0
          • B BernardIE5317

            if you utilize Visual Studio and C++ you know IntelliSense likes a so called hint file i.e. "cpp.hint" . as far as i know no automatic means to generate this file exists . as i find manually entering each macro tedious and usually forget to do so at time of writing each macro and as i found current project has more than 1000 macros i wrote a C program to generate said hint file . i don't know how others solve this problem however if any would find this code useful i can provide same after polishing up the last 2% .

            C Offline
            C Offline
            Colin Humphries
            wrote on last edited by
            #5

            We have a program that needs a fair few code macros to generate boiler-plate. We simply define those macros only in cpp.hint and include that file to bring in the macros where needed. Of course we're only doing this to keep Visual Studio "intellisense" happy.

            B 1 Reply Last reply
            0
            • C Colin Humphries

              We have a program that needs a fair few code macros to generate boiler-plate. We simply define those macros only in cpp.hint and include that file to bring in the macros where needed. Of course we're only doing this to keep Visual Studio "intellisense" happy.

              B Offline
              B Offline
              BernardIE5317
              wrote on last edited by
              #6

              thanks that seems a good idea . i will have to be careful re/ naming so as to not duplicate . thank you again

              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