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. General Programming
  3. C / C++ / MFC
  4. Questions about VS as an IDE

Questions about VS as an IDE

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studioquestionhelptutorial
4 Posts 4 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.
  • J Offline
    J Offline
    Jack Handy
    wrote on last edited by
    #1

    Here is some background info: I code C++ for unix at my job. I have my directory shared via samba to my windows desktop. I have VS setup to use as my IDE. Here is one question: We save our files as *.cc instead of *.cpp and VS doesn't recognize this as a C++ file therefor I get no syntax highlighting and all that other cool stuff. Is there a way to add an extension (*.cc) to the list of C++ files? Here is another question: I added another folder to my project called libs where I put all of our classes. We have a class called Cstring and if I type Cstring:: it will pop up the box with all of member functions associated with that class. But if I do something like Cstring str; then type str. it does not pop up that nifty little box. Anyone know how to fix this? (Note: I am not actually compiling the files on my windows machine. Just saving them and then compiling on my unix term.) Thanks in advance, Jack

    There are 10 types of people in this world, those that understand binary and those who don't.

    7 J 2 Replies Last reply
    0
    • J Jack Handy

      Here is some background info: I code C++ for unix at my job. I have my directory shared via samba to my windows desktop. I have VS setup to use as my IDE. Here is one question: We save our files as *.cc instead of *.cpp and VS doesn't recognize this as a C++ file therefor I get no syntax highlighting and all that other cool stuff. Is there a way to add an extension (*.cc) to the list of C++ files? Here is another question: I added another folder to my project called libs where I put all of our classes. We have a class called Cstring and if I type Cstring:: it will pop up the box with all of member functions associated with that class. But if I do something like Cstring str; then type str. it does not pop up that nifty little box. Anyone know how to fix this? (Note: I am not actually compiling the files on my windows machine. Just saving them and then compiling on my unix term.) Thanks in advance, Jack

      There are 10 types of people in this world, those that understand binary and those who don't.

      7 Offline
      7 Offline
      73Zeppelin
      wrote on last edited by
      #2

      I have encountered your Cstring::/ Cstring str / str. problem with the autocomplete as well. Sometimes I find it works for non-C++ native classes and sometimes it doesn't. I suspect that it is a bit flakey. Unfortunately I cannot help you, but would appreciate anyone else's input who can shed some light on this...

      P 1 Reply Last reply
      0
      • 7 73Zeppelin

        I have encountered your Cstring::/ Cstring str / str. problem with the autocomplete as well. Sometimes I find it works for non-C++ native classes and sometimes it doesn't. I suspect that it is a bit flakey. Unfortunately I cannot help you, but would appreciate anyone else's input who can shed some light on this...

        P Offline
        P Offline
        Phil Boyd
        wrote on last edited by
        #3

        An option to try is add the header file directly to the project. Don't count on the #include to parse the file for IntelliSense. Phil Boyd MCP CPT, AR You may be gone, but we will never forget your sacrifice. "Proud to be an American..." Lee Greenwood

        1 Reply Last reply
        0
        • J Jack Handy

          Here is some background info: I code C++ for unix at my job. I have my directory shared via samba to my windows desktop. I have VS setup to use as my IDE. Here is one question: We save our files as *.cc instead of *.cpp and VS doesn't recognize this as a C++ file therefor I get no syntax highlighting and all that other cool stuff. Is there a way to add an extension (*.cc) to the list of C++ files? Here is another question: I added another folder to my project called libs where I put all of our classes. We have a class called Cstring and if I type Cstring:: it will pop up the box with all of member functions associated with that class. But if I do something like Cstring str; then type str. it does not pop up that nifty little box. Anyone know how to fix this? (Note: I am not actually compiling the files on my windows machine. Just saving them and then compiling on my unix term.) Thanks in advance, Jack

          There are 10 types of people in this world, those that understand binary and those who don't.

          J Offline
          J Offline
          Johnny
          wrote on last edited by
          #4

          To force a file to be recognised as C++, use the /Tp option in your settings. Of course, you'll need to create a dummy project to have settings - put all your .cc files into it, and VC should be happy (it may even provide intellisense for you)

          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