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. Visual Studio
  4. Cannot add .cpp/.h files in VS2005

Cannot add .cpp/.h files in VS2005

Scheduled Pinned Locked Moved Visual Studio
7 Posts 2 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.
  • A Offline
    A Offline
    all_in_flames
    wrote on last edited by
    #1

    I seem to have run into a very strange bug in Visual Studio 2005. After applying some Windows XP SP2 automatic updates, I can no longer add .cpp or .h files to a project. I have to add them manually in the solution folders and then add existing items in Visual Studio to use them. I have looked through the MSDN support pages and I cannot find another reference to my issue anywhere. I might just be using incorrect search terms :) Does anyone know a fix, or even just have the same problem? I've been through the options in Visual Studio, and I can't find any option that I might have changed. The extensions are all on the list of C++ source files. Thanks in advance!

    P 1 Reply Last reply
    0
    • A all_in_flames

      I seem to have run into a very strange bug in Visual Studio 2005. After applying some Windows XP SP2 automatic updates, I can no longer add .cpp or .h files to a project. I have to add them manually in the solution folders and then add existing items in Visual Studio to use them. I have looked through the MSDN support pages and I cannot find another reference to my issue anywhere. I might just be using incorrect search terms :) Does anyone know a fix, or even just have the same problem? I've been through the options in Visual Studio, and I can't find any option that I might have changed. The extensions are all on the list of C++ source files. Thanks in advance!

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      And , what does error says ?

      Prasad Notifier using ATL | Operator new[],delete[][^]

      A 1 Reply Last reply
      0
      • P prasad_som

        And , what does error says ?

        Prasad Notifier using ATL | Operator new[],delete[][^]

        A Offline
        A Offline
        all_in_flames
        wrote on last edited by
        #3

        There is no error, and that's the strange thing. The option to add those two types of files is simply missing from the list of available file types. :sigh: This is a picture[^]of the problem.

        P 1 Reply Last reply
        0
        • A all_in_flames

          There is no error, and that's the strange thing. The option to add those two types of files is simply missing from the list of available file types. :sigh: This is a picture[^]of the problem.

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          Really strange. Just a wild try, clean up your solution and try again. You never know whats hidden there.

          Prasad Notifier using ATL | Operator new[],delete[][^]

          A 1 Reply Last reply
          0
          • P prasad_som

            Really strange. Just a wild try, clean up your solution and try again. You never know whats hidden there.

            Prasad Notifier using ATL | Operator new[],delete[][^]

            A Offline
            A Offline
            all_in_flames
            wrote on last edited by
            #5

            At the time I encountered this, my solution consisted of a single .cpp file. How much cleaner does it need to be? :laugh:

            P 1 Reply Last reply
            0
            • A all_in_flames

              At the time I encountered this, my solution consisted of a single .cpp file. How much cleaner does it need to be? :laugh:

              P Offline
              P Offline
              prasad_som
              wrote on last edited by
              #6

              all_in_flames wrote:

              How much cleaner does it need to be

              I meant Build-->Clean solution option.:)

              Prasad Notifier using ATL | Operator new[],delete[][^]

              A 1 Reply Last reply
              0
              • P prasad_som

                all_in_flames wrote:

                How much cleaner does it need to be

                I meant Build-->Clean solution option.:)

                Prasad Notifier using ATL | Operator new[],delete[][^]

                A Offline
                A Offline
                all_in_flames
                wrote on last edited by
                #7

                OHHHH! Thanks for the suggestion, but even with that, the problem persists. Sorry about the mix-up :->

                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